Text
Text is used to visually style and provide semantic value for a small piece of text content.
Anchor to textpropsTextProps
Set the semantic of the component’s content
Changes the visibility of the element to assistive technologies.
hidden
hides the component from assistive technology (for example, a screen reader) but remains visually visible.
Changes the visual appearance
Use to emphasize a word or a group of words.
Unique identifier. Typically used as a target for another component’s controls to associate an accessible label with an action.
Size of the text
Changes the visibility of the element.
hidden
visually hides the component while keeping it accessible to assistive technology, such as screen readers. Hidden elements don't take any visual space contrary to CSS visibility: hidden;
Basic Text
Preview

Anchor to appearanceAppearance
Value | Description |
---|---|
"accent" | Conveys emphasis and draws attention to the element. |
"subdued" | Conveys a subdued or disabled state for the element. |
"info" | Conveys that the element is informative or has information. |
"success" | Convey a successful interaction. |
"warning" | Convey something needs attention or an action needs to be taken. |
"critical" | Conveys a problem has arisen. |
Anchor to best-practicesBest Practices
Use larger text to emphasize content that’s not a heading, such as a price total.
Create contrast between more and less important text with properties such as
size
andsubdued
.