Base text component for applying typographic styles.
The component can be imported via:
Use the Text component when showing any sort of styled text in the application,
when other typography components aren't suitable.
The size prop allows changing the font size:
The weight prop allows changing the font weight:
The color prop allows changing the text color:
The family prop allows changing the font family:
The component supports a text prop, which applies one of the predefined
typographic styles:
product-codeproduct-h1product-h2product-h3product-h4product-labelproduct-label-secondaryproduct-linkproduct-link-secondaryproduct-pproduct-p-activeproduct-p-secondaryproduct-psproduct-ps-activeproduct-pxsproduct-pxs-activeproduct-pxs-secondaryThe truncate prop allows truncating the text with ellipsis:
The text color. (See text color tokens)
The font family. (See font family tokens)
The font style. (See MDN font-style)
The text size. (See font size tokens)
A predefined typography style. (See text tokens)