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.