structyl

Typography API

View component

The 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.

PropTypeDefault
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#boolean

Add bottom margin.

false
noWrap#boolean

Truncate long text on one line.

false
paragraph#boolean

Display as paragraph-like block spacing.

false
className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library