Tags
Chips, labels, or tags – a versatile component for displaying metadata or status.
Examples
NormaldangerinfomutedneutralsecondarysuccesswarnLoading
"use client";
import { Tag } from "@g4rcez/components";
function TagThemes() {
return (
<div className="flex flex-wrap gap-8">
<Tag>Normal</Tag>
<Tag theme="danger">danger</Tag>
<Tag theme="info">info</Tag>
<Tag theme="muted">muted</Tag>
<Tag theme="neutral">neutral</Tag>
<Tag theme="secondary">secondary</Tag>
<Tag theme="success">success</Tag>
<Tag theme="warn">warn</Tag>
<Tag loading>Loading</Tag>
</div>
);
}When to use Tags
Use when
You need the documented Tags interaction or presentation in a product workflow.
Avoid when
A native HTML element already provides the Tags behavior you need.
Accessibility
Keep the Tags labeled and use its documented keyboard interaction. The component preserves visible focus and communicates state without relying on color alone.
- Keep keyboard focus visible and follow the documented key commands.
- Provide an accessible name and connect descriptions or errors to the control.