Code

The Text component usage and API reference.

circle-info

This is a compound component, but with no wrapper.

API

The following table includes the props that all types of Text subcomponentscan 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';

❌

chevron-rightchildrenhashtag

The structure that will be rendered inside the wrapper.

chevron-righttypesethashtag

Sets the pre-formated style for the text. 'body' is the default value.

chevron-rightalignhashtag

Sets the alignment for the text

chevron-rightvariantshashtag

Sets the pre-formated variant style for the text.

H1, H2, H3, H4, H5, H6

This subcomponents extend the native <hx>arrow-up-right props.

P, SPAN

This subcomponents extend the native <p>arrow-up-right and <span>arrow-up-right props respectively.

Example

Last updated