Component
Tag
Published on
Description
The Tag component renders a keyword or label as a link. Tags are commonly used for categorization, filtering, or tagging content with metadata.
Use tags when content can be categorized or filtered by keyword. For non-interactive labels or counts, use a Badge instead.
Example
Accessibility
- Tags are rendered as
<a>elements, making them focusable and navigable by keyboard. - Screen readers announce tags as links, with the tag text as the accessible name.
- Tags receive focus styles and can be activated with Enter or Space.
References
- On Link Underlines (opens in new tab) — Adrian Roselli
- Styling Links and Buttons (opens in new tab) — Adrian Roselli
Related
Variables
None