# Tag A subject label — a topic, a technology, a filter facet — that filters with onClick and is dismissed with onRemove. - Group: Display - Import: `import { Tag } from '@misoto22/folio'` - Page: https://ui.misoto22.com/components/tag/ - Related: badge, status-pill ## When to reach for it Several sit together and the reader scans them. One fact about one record is a Badge. A chip the reader can toggle or dismiss is this one with onClick or onRemove, not a fourth component. ## Anatomy - **Chip** (required) — The : the same --radius-sm corner, the same 10px by 4px padding and the same 12px mono as a Badge, with no border of its own. - **Ground** (required) — --stone at rest, --accent once active, cross-fading over --duration-fast. The accent is the system’s one pointer at a choice, which is why it is what selection is drawn in. - **Label** (required) — children, in --ink-3-aa — the AA floor rather than a light grey — and in --accent-foreground once active. - **Remove button** — On onRemove only: a real ))} ``` ## Example — tag badge or pill ```tsx import { Badge, StatusPill, Tag } from '@misoto22/folio'
Retrieval rewrite Merged
TypeScript pgvector Search
Deployed to production
``` ## Example — a removable chip ```tsx import { Tag } from '@misoto22/folio'
{chosen.map((facet) => ( setChosen((current) => current.filter((item) => item !== facet))} removeLabel={`Remove the ${facet} filter`} > {facet} ))} {chosen.length === 0 && No filters}
```