Tag input

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.

TagInput3D props

PropTypeDefaultDescription
valuestring[]Tags for controlled use.
defaultValuestring[][]Starting tags when the component manages its own state.
onValueChange(tags: string[]) => voidCalled with the full tag list after every change.
placeholderstring"Add a tag…"Hint text shown while there are no tags.
maxnumber10Most tags allowed. Further input is ignored.
allowDuplicatesbooleanfalseAllow the same tag twice. Off by default.
suggestionsstring[]Words offered under the field. Clicking one adds it.
disabledbooleanStops all interaction and dims the field.
aria-labelstring"Tags"Names the field for screen readers when there is no visible label.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks