Text
Importβ
import { Text } from '@resultadosdigitais/tangram-components'
Propertiesβ
isItalicβ
asβ
| Type | node | string |
|---|---|
| Default | 'p' |
Descriptionβ
Set element type to be rendered for this component. By default, it will render a <p> element.
forwardedAsβ
| Type | node | string |
|---|---|
| Default | undefined |
Descriptionβ
Pass as properties to this component if it is encapsulated by the styled of the Styled Component.
childrenβ
textColorβ
| Type | string |
|---|---|
| Default | '--neutral-text-high-emphasis' |
Descriptionβ
Sets the text color based on design tokens.
tokenβ
truncateβ
| Type | bool |
|---|---|
| Default | false |
Descriptionβ
Identifies that the text will be truncated when it exceeds the available size.
wordBreakβ
| Type | bool |
|---|---|
| Default | false |
Descriptionβ
Sets the css property word-break to break-all. It controls whether line breaks appear in places where the text would otherwise exceed the available size.