Code blocks
Basic blocks with titles
export function greet(name: string): string { return `Hello, ${name}`;}Line highlighting
const ramp = deriveTokens("#4f46e5");const css = tokensToCss(ramp); // this line is highlightedconsole.log(css);Grouped samples
Code groups keep one snippet per language or package manager, with synchronized tab selection across the page. Wrap consecutive fenced code blocks in a CodeGroup component and give each block a title:
<CodeGroup> ...one fenced code block per tab, each with a title="..." label...</CodeGroup>Here is a rendered code group:
pnpm add @graphstaff/ai-clientnpm install @graphstaff/ai-clientyarn add @graphstaff/ai-client