The Tag component is used to display categorized labels, status indicators, or metadata in an application. It is designed for clarity and flexibility, supporting different frameworks and customization options.
The component can be imported via:
PlumaTag supports multiple variants via the variant prop:
A close button can be added to PlumaTag when the onDelete prop is provided,
which will be called when the button is clicked.
A compact (smaller) version of the tag can be rendered with the isCompact prop:
Default:false
Whether the tag should render in a smaller style
Default:false
Whether the tag is disabled
Function to call when the "X" close button is clicked. Providing this prop will render the close button.
Whether to call event.stopPropagation() in the onMouseDown event of the delete button.
Whether the delete button should render as a span with role="button"
(instead of a button element)
Default:default
The variant of the tag