Tag
Importβ
import { Tag } from '@resultadosdigitais/tangram-components'
Propertiesβ
children πβ
asβ
| Type | node | string |
|---|
Descriptionβ
Set element type to be rendered for this component. By default it will be render a div element.
clickable ποΈβ
| Concerns | ποΈ Deprecated: - Use `onClick` to automatically display the appropriate styles of hover, focus and active states. |
|---|---|
| Type | bool |
| Default | true |
Descriptionβ
Allows interaction in the component using defined styles as hover, focus, active. When is false the Tag will not be clickable, even if onClick prop is defined.
kindβ
iconβ
onClickβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback fired when the Tag is clicked.
onDeleteβ
| Type | func |
|---|---|
| Param | event React.SyntheticEvent - The event source of the callback. |
Descriptionβ
Callback fired when the close button is clicked.
If defined will display a delete button and keep the kind style as default Tag.kinds.default automatically.
sizeβ
removable ποΈβ
| Concerns | ποΈ Deprecated: - Use `onDelete` property as callback to define automatically the display with delete icon button. |
|---|---|
| Type | bool |
Descriptionβ
Sets a type removable tag.
startIcon ποΈβ
| Concerns | ποΈ Deprecated: - Use `icon` property instead of it. |
|---|---|
| Type | node |
Descriptionβ
Sets the icon on start.