Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Tag

Tag is a component used to categorize or organize items using keywords that describe them.

Source@yamada-ui/tag

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>
Copied!

ARIA Roles and Attributes

ComponentRoles and AttributesUsage
TagCloseButton Internalaria-label="Close tag"If onClose is set, then “Close tag” is set.

Edit this page on GitHub

PreviousData DisplayNextBadge