Text
Displays text with specific visual styles or tones. Use to present content with appropriate emphasis, hierarchy, or tone.
Note
Text on mobile surfaces is blockish, rather than inline.
Anchor to propertiesProperties
- Anchor to colorcolorColorKeywordDefault: 'base'
Modify the color to be more or less intense.
- string
A unique identifier for the element.
- Anchor to tonetone| 'auto' | 'neutral' | 'info' | 'success' | 'caution' | 'warning' | 'critical'Default: 'auto'
Sets the tone of the component, based on the intention of the information being conveyed.
- Anchor to typetype'strong' | 'small' | 'generic'Default: 'generic'
Provide semantic meaning and default styling to the text.
Other presentation properties on Text override the default styling.
ColorKeyword
'subdued' | 'base' | 'strong'
Was this section helpful?
Code
<s-text>
<s-text type="strong">Name:</s-text> Jane Doe
</s-text>
Examples
Code
Default
<s-text> <s-text type="strong">Name:</s-text> Jane Doe </s-text>
Preview
