Code Block

Beadkit component

Code block

Agent-written code that resolves line by line, keeps long lines scrollable, and reports copy success or failure accessibly.

Back to gallery

Live preview

Code block preview

lesson.tsTypeScript

Install this component

npx shadcn@latest add @beadkit/code-block
Optional registry override

Named CLI installs need no setup. Use this to pin the registry URL or enable shadcn MCP search.

npx shadcn@latest registry add '@beadkit=https://beadkit.dev/r/{name}.json'