<XrText>
Text in the theme's type scale: caption, body, label, title, headline. Latin and Cyrillic.
Usage
vue
<XrText variant="headline">Hello</XrText>
<XrText muted>Secondary text</XrText>API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
ui | Record<string, unknown> | {} | Escape hatch: raw uikit (@pmndrs/uikit) properties, merged last. |
variant | TextVariant | 'body' | A step of the theme's type scale: caption, body, label, title or headline. |
muted | boolean | Draw it in the theme's muted text colour. | |
align | "center" | "justify" | "left" | "right" | Horizontal alignment of the lines. | |
color | string | Overrides the color inherited from the parent. | |
text | string | number | The text. The default slot (plain text) is used when it is left out. |