Skip to content

<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 ​

PropTypeDefaultDescription
uiRecord<string, unknown>{}Escape hatch: raw uikit (@pmndrs/uikit) properties, merged last.
variantTextVariant'body'A step of the theme's type scale: caption, body, label, title or headline.
mutedbooleanDraw it in the theme's muted text colour.
align"center" | "justify" | "left" | "right"Horizontal alignment of the lines.
colorstringOverrides the color inherited from the parent.
textstring | numberThe text. The default slot (plain text) is used when it is left out.

MIT License