Code Block
A plain code block with an optional copy control. No syntax highlighting by design - highlighting means shipping a grammar and a theme, which is a dependency a component library should not force on every consumer.
Basic
import { Button } from "@fujiui/react";
export function Save() {
return <Button>Save changes</Button>;
}Without the copy control
copyable={false} for a snippet that is illustrative rather than something to paste.
npm install @fujiui/reactCollapsible
Starts collapsed, for a long snippet that is not the point of the section it sits in.
- language labels the header tab only - nothing is parsed from it
- Pass defaultOpen alongside collapsible to start it expanded
API reference
The source to display, verbatim.
Renders as a collapsed-by-default accordion instead of always-expanded.
Shows the copy-to-clipboard control. Defaults to true.
Starts a `collapsible` block expanded. Ignored when `collapsible` is off.
Language name shown on the header tab. Labels only - nothing is highlighted from it.
Also accepts everything from React.HTMLAttributes<HTMLDivElement>.
Coding agents read this reference, with its examples, from the version your project has installed, through the Fuji UI MCP server. Set up your agent
