Installation
Examples
Add and remove tags
Type a tag and press Enter to add it.
ReactTypeScriptTailwind CSSNext.js
Press Enter or comma to add. 4 / 10 tags used.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string[] | [] | Controlled array of tags. |
| onChange | (tags: string[]) => void | — | Called when tags change. |
| maxTags | number | — | Maximum tags allowed. |
| allowDuplicates | boolean | false | Allows duplicate values. |
| placeholder | string | 'Add tag...' | Placeholder text. |
| separators | string[] | ['Enter',','] | Keys that create a new tag. |