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.