Hextech UI

Tags

Live example

Tags

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/tag-group.json

API reference

These are the main Tags options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
labelstring (required)—
itemsreadonly TagItem[]—
selectionModenone | single | multiplenone
onRemove(ids: string[]) => void—
tonegold | teal | mutedgold

Usage notes

Use stable item IDs, a descriptive label and an explicit selectionMode. Handle onRemove by updating the application collection. Keep focus on a remaining item after removal.