Code
The Text component usage and API reference.
This is a compound component, but with no wrapper.
API
The following table includes the props that all types of Text subcomponents
can have.
Props
Type
Required
children
ReactNode
✅
typeset
'mouse' | 'sm-caps' | 'body' | 'body-lg' | 'heading-2' | 'heading-1' | 'title-2' | 'title-1';
❌
align
'left' | 'center' | 'right' | 'justify'
❌
variants
'base' | 'primary' | 'danger' | 'warning' | 'success' | 'subtle' | 'inverted' | 'invertedSubtle';
❌
H1, H2, H3, H4, H5, H6
This subcomponents extend the native <hx>
props.
P, SPAN
This subcomponents extend the native <p>
and <span>
props respectively.
Example
Last updated