easeUI

Tag Input

A field that turns what you type into tags. Enter or a comma adds one, Backspace marks then removes the last, and a duplicate shakes the tag that already exists.

  • react
  • motion
  • tailwind

Enter or a comma adds a tag. Backspace twice removes the last one. Try adding react again.

Installation

$ bunx --bun shadcn add @easeui/tag-input

API reference

PropTypeDefaultDescription
value?{}-Controlled list of tags.
defaultValue?{}[]Starting tags when uncontrolled.
onValueChange?((tags: {}) => void)--
placeholder?stringAdd a tag-
max?number-Stops adding once this many tags exist.
label?stringTagsNames the field for screen readers. Default "Tags".
className?string--