Typography API
View componentThe full prop reference for the Typography component. Theme-aware text styles.
Import
tsx
import { Typography } from '@structyl/styled';Props
Typography
Text variants and text behavior.
| Prop | Type | Default |
|---|---|---|
| variant# | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'body' | 'small' | 'caption' | 'button' | 'overline' | 'muted' | 'code'Text style. | 'body' |
| align# | 'inherit' | 'left' | 'center' | 'right' | 'justify'Text alignment. | — |
| color# | 'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted'Tokenized text color. | 'default' |
| gutterBottom# | booleanAdd bottom margin. | false |
| noWrap# | booleanTruncate long text on one line. | false |
| paragraph# | booleanDisplay as paragraph-like block spacing. | false |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Source code
If you didn't find what you need here, read the component implementation .