All components

Code Block

Framed code panels with a title header, controls, and scrollable monospace content.

install.sh
npx stylexblocks add table
npm install
npm run dev

Sizes

install.sh
npx stylexblocks add table
npm install
npm run dev
sm
install.sh
npx stylexblocks add table
npm install
npm run dev
md
install.sh
npx stylexblocks add table
npm install
npm run dev
lg

Install

Source

components/ui/ui-sdk/code-block.tsx

Examples

Installable blocks built with Code Block — real use cases, delivered as source you own.

AI Chat Conversation

Transcript of alternating turns carrying mixed rich content inline (prose, code blocks, collapsible tool-call output) beside a resizable artifact panel that collapses to a full-screen dialog on narrow screens.

Documentation Catalog

Developer documentation hub featuring a searchable hero banner, CLI starter panel, quick-start cards, filterable categorized guide tracks with schematic previews, interactive article preview dialog with copyable code blocks, and live status and changelog links.

Documentation Design

Design-system component reference article featuring breadcrumb navigation, stability metadata badges, sticky scroll-spy table of contents, an interactive playground with live controls and synchronized JSX output, paired Do / Don't visual specimens, filterable API props table, copyable usage recipes, keyboard & ARIA contracts, and helpfulness feedback footer.

Documentation Technical

Sequential technical quickstart guide featuring breadcrumb navigation, an AI setup prompt card, prerequisites and troubleshooting callouts, synced package-manager and runtime code switchers, checkable step completion progress, onward reading cards, and a responsive sticky table-of-contents rail.

IDE Workspace

Multi-pane code IDE workspace with a filterable file tree, open and closable editor tabs, line-numbered syntax-highlighted code view, resizable Terminal / Problems / Output workbench, properties and history inspector, and live status bar.

Page Editor

Collaborative document editor with a resizable pages tree and live block outline, formatting toolbar, page-width switcher, inline-editable structured blocks (headings, paragraphs, callouts, checklists, code snippets), collaborator presence, review comments, and share controls.