Tag Input

Buttons

Animated tag input with Enter/comma to add, Backspace to remove, max tags limit, controlled and uncontrolled modes, and framer-motion AnimatePresence transitions.

Loading preview...
Customize
Placeholder
Max tags
8

Props

PropTypeDefaultDescription
tagsstring[]undefinedControlled tag array. Omit for uncontrolled mode.
onChange(tags: string[]) => voidundefinedCallback fired when the tag list changes.
placeholderstring'Add a tag...'Placeholder text shown when no tags exist.
maxTagsnumber10Maximum number of tags allowed.
classNamestring''Additional CSS classes.