Components
Loading preview...
HeroUI v3 TagGroup — selectable tags with sizes, variants, disabled, selection modes, controlled state, error message, prefix, removable tags and list-data management.
npx shadcn@latest add https://21st.dev/r/hero_ui/heroui-tag-group"use client"
import { Label, Tag, TagGroup } from "@/components/ui/heroui-tag-group"
export default function TagGroupVariants() {
return (
<div className="flex flex-col gap-8">
<TagGroup selectionMode="single" variant="default">
<Label>Default</Label>
<TagGroup.List>
<Tag>News</Tag>
<Tag>Travel</Tag>
<Tag>Gaming</Tag>
</TagGroup.List>
</TagGroup>
<TagGroup selectionMode="single" variant="surface">
<Label>Surface</Label>
<TagGroup.List>
<Tag>News</Tag>
<Tag>Travel</Tag>
<Tag>Gaming</Tag>
</TagGroup.List>
</TagGroup>
</div>
)
}