Typography
Foundational text components for titles, paragraphs, inline text, and links with rich formatting options.
When to Use
- To render headings at different levels (h1-h5)
- For inline text with semantic variants (success, warning, danger)
- To display copyable or editable text
- For text with decorations like code, keyboard, mark, underline, or strikethrough
- To truncate long text with ellipsis and expand capability
Import
Examples
Title Levels
Title supports five heading levels corresponding to h1-h5.
Text Variants
Text comes in semantic color variants for different contexts.
Text Decorations
Apply inline formatting to emphasize or annotate text.
Copyable Paragraph
Enable copy-to-clipboard functionality on text content.
Editable Text
Allow users to edit text inline.
Link
Render styled anchor links with optional external behavior.
Ellipsis
Truncate long text with configurable row limits and expand toggle.
API
Typography.Title
level—1 | 2 | 3 | 4 | 5— Heading level h1-h5 (default:1)type—"secondary" | "success" | "warning" | "danger"— Color variantdisabled—boolean— Muted, non-interactive styling (default:false)mark—boolean— Highlight background (default:false)code—boolean— Inline code styling (default:false)underline—boolean— Underline decoration (default:false)delete—boolean— Strikethrough decoration (default:false)strong—boolean— Bold weight (default:false)italic—boolean— Italic style (default:false)copyable—boolean | CopyableConfig— Enable copy functionality (default:false)editable—boolean | EditableConfig— Enable inline editing (default:false)
Typography.Text
type—"secondary" | "success" | "warning" | "danger"— Color variantdisabled—boolean— Muted styling (default:false)mark—boolean— Highlight background (default:false)code—boolean— Inline code styling (default:false)keyboard—boolean— Keyboard key styling (default:false)underline—boolean— Underline decoration (default:false)delete—boolean— Strikethrough (default:false)strong—boolean— Bold weight (default:false)italic—boolean— Italic style (default:false)ellipsis—boolean | EllipsisConfig— Truncate with ellipsis (default:false)copyable—boolean | CopyableConfig— Enable copy (default:false)editable—boolean | EditableConfig— Enable editing (default:false)
Typography.Paragraph
Same props as Typography.Text, rendered as a block element.
Typography.Link
href—string— Link URLtarget—string— Link target (_blank, etc.)type—"secondary" | "success" | "warning" | "danger"— Color variant- All text decoration props from Typography.Text
CopyableConfig
text—string— Custom text to copy (overrides children)onCopy—() => void— Callback after copytooltips—[string, string]— Tooltip text before and after copy (default:["Copy", "Copied!"])
EllipsisConfig
rows—number— Number of visible rows (default:1)expandable—boolean— Show expand/collapse toggle (default:false)symbol—ReactNode— Custom ellipsis symbol