Collections

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.

Loading...

Installation

Install the component via the CLI in one command.

npx shadcn@latest add @intentui/tag-group

Composed 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

Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.

npm install react-aria-components @heroicons/react

Anatomy

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.

Loading...

Controlled

Manage the values of the tag group through the value prop.

Loading...

Href

Incorporate a hyperlink within the tag group using the href prop.

Loading...

Disabled

Disable tags either by setting the isDisabled prop or using disabledKeys on the TagGroup.

Loading...
Unlock the full power of
Design Intent UI

Build modern web apps faster with 1000+ resources across components, blocks, patterns, templates, and starter kits.

Learn more