Typography
Text
Polymorphic text component — display, headings, body, caption, mono.
Typography Variants
Standardized typography scales for consistent design.
Display
Heading 1
Heading 2
Heading 3
Heading 4
Body (Default)
Caption textMonospaceLine Clamping
Cleanly truncate long paragraphs to a specific number of lines using maxLines.
Real-world Scenarios
Using Text props to build complex, professional interfaces.
Alexander Graham
Product Designer • San FranciscoEngineering
The future of agentic coding interfaces
May 14, 2026•5 min read
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
variant | TextVariant | 'body' | Semantic design theme variant |
color | TextColor | string | 'default' | Predefined theme typography color token or hex code |
truncate | boolean | — | Truncates overflowing text with trailing ellipses |
maxLines | number | — | Configures the maxLines option |
as | keyof JSX.IntrinsicElements | — | HTML tag type to render (button or a) |
children | React.ReactNode | — | Main descriptive text or overlay children layout |
align | 'left' | 'center' | 'right' | 'justify' | — | Horizontal text alignment (left, center, right, justify) |
weight | 'normal' | 'medium' | 'semibold' | 'bold' | number | string | — | Configures the weight option |
transform | 'uppercase' | 'lowercase' | 'capitalize' | 'none' | — | Configures the transform option |
size | number | string | — | Predefined size scaling preset |
key | string]: any | — | Configures the key option |