The Text component usage and API reference.
This is a compound component, but with no wrapper.
The following table includes the props that all types of Text subcomponentscan have.
Text subcomponents
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';
The structure that will be rendered inside the wrapper.
Sets the pre-formated style for the text. 'body' is the default value.
Sets the alignment for the text
Sets the pre-formated variant style for the text.
This subcomponents extend the native <hx>arrow-up-right props.
<hx>
This subcomponents extend the native <p>arrow-up-right and <span>arrow-up-right props respectively.
<p>
<span>
Live Demo
Corde Sandboxarrow-up-right
Last updated 1 year ago