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.