Type a word and press Enter or a comma to make a chip. Backspace removes the last chip, pasting a comma list adds several, and suggestions add with a click.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string[] | Tags for controlled use. | |
| defaultValue | string[] | [] | Starting tags when the component manages its own state. |
| onValueChange | (tags: string[]) => void | Called with the full tag list after every change. | |
| placeholder | string | "Add a tag…" | Hint text shown while there are no tags. |
| max | number | 10 | Most tags allowed. Further input is ignored. |
| allowDuplicates | boolean | false | Allow the same tag twice. Off by default. |
| suggestions | string[] | Words offered under the field. Clicking one adds it. | |
| disabled | boolean | Stops all interaction and dims the field. | |
| aria-label | string | "Tags" | Names the field for screen readers when there is no visible label. |
| className | string | Extra classes added to the outer element. |