Core / Typography
Text
Body copy with semantic element and scale choices.
Preview
The main story starts here.
Supporting information stays comfortably readable.
Usage
<Text variant="body">Supporting copy.</Text>Adopt to your project
Typography inherits your application’s font choices. Use semantic props for hierarchy, then use className for local spacing and visual adaptation without changing the component’s meaning.
Accessibility
Use Heading levels in document order. Use Label with htmlFor for form controls, and keep captions and quotes as supporting—not primary—content.
API reference
| Attribute | Details |
|---|---|
as | p | span | div — default: p |
variant | body | body-lg | body-sm | label | caption — default: body |
children | ReactNode |
className | string |
id | string |