List
Importβ
import { List } from '@resultadosdigitais/tangram-components'
Propertiesβ
children πβ
asβ
forwardedAsβ
listStyleTypeβ
sizeβ
alignmentβ
borderedβ
<ListDivider />β
Importβ
import { ListDivider } from '@resultadosdigitais/tangram-components'
Propertiesβ
asβ
| Type | node | string |
|---|
Descriptionβ
Set element type to be rendered for this component. By default it will render a li element.
forwardedAsβ
| Type | node | string |
|---|
Descriptionβ
Set element type with new style to be rendered for this component. By default it will render a li element.
<ListHeader />β
Importβ
import { ListHeader } from '@resultadosdigitais/tangram-components'
Propertiesβ
children πβ
asβ
| Type | node | string |
|---|
Descriptionβ
Set element type to be rendered for this component. By default it will render a li element.
forwardedAsβ
| Type | node | string |
|---|
Descriptionβ
Set element type with new style to be rendered for this component. By default it will render a li element.
<ListItem />β
Importβ
import { ListItem } from '@resultadosdigitais/tangram-components'
Propertiesβ
children πβ
asβ
| Type | node | string |
|---|
Descriptionβ
Set element type to be rendered for this component. By default it will render a li element.
activeβ
clickableβ
disabledβ
forwardedAsβ
| Type | node | string |
|---|
Descriptionβ
Set element type with new style to be rendered for this component. By default it will render a li element.
onClickβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback fired when the ListItem is clicked.
roleβ
<ListItemAction />β
Importβ
import { ListItemAction } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
<ListItemContent />β
Importβ
import { ListItemContent } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
mainText ποΈβ
secondaryText ποΈβ
mainColor ποΈβ
| Concerns | ποΈ Deprecated |
|---|---|
| Type | string |
| Default | '--neutral-text-high-emphasis' |
Descriptionβ
Sets the main text color.
secondaryColor ποΈβ
| Concerns | ποΈ Deprecated |
|---|---|
| Type | string |
| Default | '--neutral-text-low-emphasis' |
Descriptionβ
Sets the support text color.
<ListItemExtra />β
Importβ
import { ListItemExtra } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
leftβ
rightβ
<ListItemImage />β
Importβ
import { ListItemImage } from '@resultadosdigitais/tangram-components'
Propertiesβ
childrenβ
<ListItemSelector />β
Importβ
import { ListItemSelector } from '@resultadosdigitais/tangram-components'