Tag Group
A collection of tags displayed together, allowing users to categorize, filter, or manage multiple labels efficiently. It supports dynamic tag management.
Basic
A tag group is a focusable collection of labels, categories, keywords, filters, or other elements, equipped with keyboard navigation, selection, and removal functionalities.
Installation
npx shadcn@latest add @intentui/tag-groupComposed components
When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.
This component comes packed with several components to enhance functionality and provide a seamless experience.
Manual installation
npm i react-aria-components @heroicons/reactAnatomy
import { Tag, TagGroup, TagList } from "@/components/ui/tag-group"
import { Label } from "@/components/ui/field"<TagGroup selectionMode="multiple">
<Label>Serverless</Label>
<TagList>
<Tag>AWS Lambda</Tag>
<Tag>Google Cloud Functions</Tag>
<Tag>Azure Functions</Tag>
</TagList>
</TagGroup>With remove button
Tags within the group can include a removal button.
Controlled
Manage the values of the tag group through the value prop.
Href
Incorporate a hyperlink within the tag group using the href prop.
Disabled
Disable tags either by setting the isDisabled prop or using disabledKeys on the TagGroup.