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-input
props
nametypedefaultdescription
value *string[]-current tags (controlled).
onChange *(tags: string[]) => void-
suggestionsstring[][]clickable existing-tag chips; present tags are hidden.
placeholderstring"add a tag…"
allowFreeTextbooleantruewhen false, only suggestions can be added.
classNamestring-