Tag group
Shows a group of tags that you can select or remove.
Topics
Design
Engineering
Research
tag-group-demo.tsx
Installation
The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.
npm
yarn
pnpm
bun
Composition
TagGroupOwns selection and removal. Set onRemove to show remove buttons.
TagGroupLabelTagListViewSet renderEmptyState to show a message when there are no tags.
TagRepeatsIts text stays on one line.
TagGroupDescriptionOptionalTagGroupErrorOptional
Selection
Set selectionMode="multiple" to use tags as filters. A disabled tag cannot be selected.
Amenities2 filters on.
Wi-Fi
Parking
Pool
Gym
Pets allowed
Breakfast
tag-group-selection-demo.tsx
Links
Related topics
Forms
Overlays
Collections
Motion
tag-group-links-demo.tsx
Sizes
Filters
Open
Assigned to me
High priority
Filters
Open
Assigned to me
High priority
Filters
Open
Assigned to me
High priority
tag-group-sizes-demo.tsx
API reference
vip/ui adds or changes the props below. For all other props, see React Aria TagGroup (opens in a new tab).
- size: "xs" | "sm" | "md" = "md"
- Sets the size of each tag and its remove button. A size on a tag overrides it.