Learn about the Text component for use in UI extensions.
Text
component renders text with formatting options.
Prop | Type | Description |
---|---|---|
format | Object | Text formatting options, which include:
|
variant | 'bodytext' (default) | 'microcopy' | The style of text to display. See the variants section for more information. |
inline | Boolean | When set to true , will insert text without breaking the line. Default is false . |
truncate | Boolean | object | Truncates long strings to a single line. If the full string doesn’t fit on one line, the excess text will display in a tooltip on hover.
|
variant
prop.
variant="bodytext"
(default)variant="microcopy"