Form Tag Input
Tag input where users type tags and press enter or comma to create chips.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Tag input where users type tags and press enter or comma to create chips.
- Paste a comma separated or line separated list and split it into tags.
- Labels or keywords field with suggestions, a maximum number of tags and duplicate prevention.
For the choices are a fixed set picked from a searchable list with async results, use Form Async Combobox. For a person or entity must be referenced inside running text, use Form Mention Input.
Includes
- Tag chips
- Paste split
- Comma enter commit
- Suggestions listbox
- Max count
- Duplicate guard
- Accessible remove
- Backspace remove
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
agentic-ui add form-tag-inputnpx shadcn@4.17.0 add @agentic-ui/form-tag-inputUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
4 files
- components/agentic-ui/form-tag-input/form-tag-input/form-tag-input.tsx
- components/agentic-ui/form-tag-input/form-tag-input/use-tag-field.ts
- components/agentic-ui/form-tag-input/form-tag-input/tag-model.ts
- components/agentic-ui/form-tag-input/form-tag-input/tag-parts.tsx
Related components
Form Async Combobox
Multiple assignment of reviewers with avatars, roles and teams in issue management.
Details and live previewForm Color Picker
Color picker with a swatch button that opens a popover with a saturation area and hue slider.
Details and live previewForm Date Range Picker
Filter conversion and traffic metrics in analytics panels.
Details and live previewForm Field Array
Invoice lines with quantity, unit price and tax.
Details and live preview