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.