Tag
A Tag is a single word that highlights a specific aspect of an asset. An asset can have multiple tags.
Use tags to indicate status, aid recognition, and support navigation—leveraging color to convey consistent meaning across products.
Colors
Customize the tag’s color using the color prop.
Sizes
Change the tag’s size using the size prop.
Icons
Add an icon using the icon prop. To show a built-in checkbox icon, use the showSelectIcon prop.
Long text
The Tag component automatically truncates text that overflows.
To display the full text on hover, add a tooltip.
This is an example of a extremely long tag
Actions
Tags can have click actions.
- Use the
onClickprop to add an action to the tag. - Use the
onDeleteprop to add a delete button to the tag.
Controlled selection
The tag selection state can be controlled using the selected prop.
Selected tags:
Asset 1, Asset 2
Related components
Last updated on