components / tag-input
tag-input.
chip input — enter or comma adds a tag, backspace removes the last, suggestions append on click. dedupes and trims.
reacttypescript
installation
bunx @justin06lee/chrome@latest add tag-inputprops
| name | type | default | description |
|---|---|---|---|
| value * | string[] | - | current tags (controlled). |
| onChange * | (tags: string[]) => void | - | |
| suggestions | string[] | [] | clickable existing-tag chips; present tags are hidden. |
| placeholder | string | "add a tag…" | |
| allowFreeText | boolean | true | when false, only suggestions can be added. |
| className | string | - |