Text

Basicly text as components.

<Text variant="title.large" as="h1">
	Title Large
</Text>
<Text variant="title.medium" as="h2">
	Title Medium
</Text>
<Text variant="title.small" as="h3">
	Title Small
</Text>
<Text variant="subtitle">Subtitle</Text>
<Text variant="subtitle.small">Subtitle Small</Text>
<Text variant="body">Body</Text>
<Text variant="body.small">Body Small</Text>
<Text variant="button">Button</Text>
<Text variant="caption">Caption</Text>
<Text variant="label">Label</Text>

Has two primary props: “variant” (text formatting properties) and “as” (as=”h1″ for example). Is an experimental component. Use “__experimentalText” to import it.

GitHub URL
Classification

Category

Components