Text
Text represent a single text line without semantic meaning.
install | yarn add @clayui/core |
---|---|
version | 3.123.0 |
Text
Property | Description |
---|---|
aria-hidden boolean | State indicates whether the component will be exposed to an accessibility API. |
as 'p' | 'span' | Determine the way in which a text is displayed. The default value is 'span' |
children React.ReactNode | Text content. |
color | null
| 'primary'
| 'secondary'
| 'muted'
| 'success'
| 'warning'
| 'danger'
| 'info' | Determine the color text. |
id string | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
italic boolean | Set the text in italic style. |
monospace boolean | Set the text in monospace style. |
size 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Number to set the text size. The default value is 4 |
truncate boolean | Set the text in truncate style. |
weight | 'lighter'
| 'light'
| 'normal'
| 'semi-bold'
| 'bold'
| 'bolder' | Determines the weight of the font. |
TextHighlight
Property | Description |
---|---|
children string | The component content. |
match string | Match is the string that will be compared with value. |