Provide short custom children such as 12+ when the overflow count needs compact product-specific formatting.
Provide short custom children such as 12+ when the overflow count needs compact product-specific formatting.
An empty state with an icon, heading, and description centered both vertically and horizontally inside a card. This is the most common use of Center: placing content in the middle of a fixed-height area like a panel, card, or content region. The height prop defines the centering space.
Citations embedded within a paragraph of text, showing how they flow inline with surrounding content.
Inline code snippets inside a sentence showing how Code renders alongside body text.
A JSON configuration file with a title bar and line numbers. The title prop adds a filename label in the header so readers know which file the code belongs to.
Inline code used for variables, terminal commands, CSS properties, file paths, and keyboard shortcuts. Shows how Code adapts to different kinds of technical content.
TypeScript code with specific lines highlighted to draw attention to a key section. Use highlightLines to call out new or important code in tutorials and changelogs.
Inline code references mixed within a paragraph of body text. Use Code to mark up function names, hooks, or API terms so they stand out from surrounding prose.
A long code block with a max height that enables vertical scrolling. Use maxHeight to keep the block from dominating the page when displaying large files.
Short terminal commands with no header: the copy button sits in its own column beside the code, so a one-line command reads as a single row and a long line ends before the button instead of running under it. Use for install instructions or one-liner commands that readers will paste directly.
A dark terminal-style command block: a bash CodeBlock wrapped in SyntaxTheme with the GitHub Dark preset, copy button on, and no line numbers. Use for shell sessions or CLI output that should read as a terminal even on light pages. Reach for a dark syntax preset instead of hand-rolling a dark box with custom CSS.
Inline code rendered inside heading, body, supporting, and label text. Code automatically matches the font size of its parent text element.
A syntax-highlighted TypeScript code block with line numbers, a title bar, and a copy button.
Astryx showcase: Heading.
Responsive card grid with truncated headings and descriptions for uniform layout
Real-world page layout demonstrating heading levels h1 through h3 with supporting text
Single-line and multi-line heading truncation with ellipsis for constrained layouts
Astryx showcase: Kbd.
Keyboard shortcuts rendered inline within instructional text
Modifier combinations and special keys rendered as shortcut badges
A link embedded within a paragraph of body text.
Heading levels 1 through 4 map to progressively deeper indentation, so a long document with sub-sections stays scannable.
A fixed-height file panel that scrolls on the block axis; the heading sits inside the viewport, so it scrolls away with the content.
axis="inline" scrolls the same cards sideways; isFullBleed lets the rail run to the panel edges while the content padding keeps the first card aligned with the heading.
Showing 1–24 of 44