Tag
Tag
is a component used to categorize or organize items using keywords that describe them.
Tag
displays a close button when onClose
is set. The aria-label
of this close button is set to "Close tag"
by default. If you want to change the aria-label
to a custom value, set the aria-label
in closeButtonProps
.
<Tag onClose={() => {}} closeButtonProps={{ "aria-label": "Close custom tag" }}>Tag</Tag>
ARIA Roles and Attributes
Component | Roles and Attributes | Usage |
---|---|---|
TagCloseButton Internal | aria-label="Close tag" | If onClose is set, then “Close tag” is set. |
Edit this page on GitHub