Report a problem or share feedback← Catalog
Code Block
freebeautifui/code-block
A line-numbered listing and a unified diff.
$
npx shadcn@latest add @beautifui/code-block- Source
- Beautiful UI
- Kind
- component
- Categories
- agent-ui, code
- Use as
- drop-in — replaces your component
- Applies to
- agent-uicode
- Motion
- not tagged (static or unknown)
- Tags
- ai, component
- Licence
- MIT
- Live demo
- www.beautifului.dev
- Docs
- www.beautifului.dev
Similar
Compare all 4 →- Code Blockbeui/code-blockA syntax-highlighted code surface with stable streaming updates, line numbers, focused lines, smooth following, and copy feedback.
- Ai Reasoningsmoothui/ai-reasoningCollapsible reasoning trace: the label shimmers 'Thinking' only while isStreaming, then settles to 'Thought for 3.2s' (measured, or pass duration) and auto-collapses — until the user toggles it, after which it stops deciding for them. Muted-foreground chrome, inherits the theme; no shimmer under reduced motion.
- Tool Chipsbeautifui/tool-chipsCompact chips for tool calls an agent made. Requires the Beautiful UI foundation.css, which redefines --accent (collides with shadcn).