Tag
A compact element used to display small pieces of information, labels, or metadata. Tags can also indicate keyboard shortcuts or other contextual cues.
Usage
Use tags to highlight keywords, categories, statuses, or shortcuts in a concise and visually distinct way. Make sure tags are clear and readable, and avoid overcrowding interfaces with too many tags, as this can reduce clarity and focus.
API Reference
Component attubute(s)
x-h-tag
x-h-tag-groupExamples
html
<div x-h-tag-group>
<div x-h-tag>⌘</div>
<div x-h-tag>⇧</div>
<div x-h-tag>⌥</div>
<div x-h-tag>⌃</div>
</div>html
<div x-h-tag-group>
<div x-h-tag>Ctrl</div>
<span>+</span>
<div x-h-tag>B</div>
</div>html
<div x-h-tag-group>
<div x-h-tag>Historical</div>
<div x-h-tag>Adventure</div>
<div x-h-tag>Psychological</div>
</div>html
<button x-h-button data-variant="outline">
Cancel
<div x-h-tag>Esc</div>
</button>