TagsInput
Forms

TagsInput.

Add and remove text tags using Enter, comma or Backspace.

Real interactive component
Live demo
ReactCloudflareNext.js
3 / 7

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

7 props
ParameterTypeRequiredDefaultPossible valuesDescription
valuestring[]Yes——Current selected plain-text tags.
onValueChange(tags: string[]) => voidNo——Called when tags are added or removed.
maxTagsnumberNo12—Maximum number of tags.
labelstringNoTags—Accessible tag group name.
placeholderstringNoType a tag and press Enter—Instruction when the input is empty.
disabledbooleanNofalsetrue · falseDisable editing/removing tags.
classNamestringNo——Additional CSS class on the outer component element.