← ui-lab

Tag Input

A token field: a text input paired with a list of removable tags. Type a value and press Enter to add a tag, click a tag's × to remove it, or press Backspace in the empty field to remove the last one. Each tag is a list item with a named remove button, so the token set is fully reachable by keyboard and assistive technology.

Preview

  • Design
  • Urgent

Installation

npx shadcn@latest add https://ui.publictheta.com/r/tag-input.json

Conformance

This component conforms to the @publictheta/ui-spec tag-input specification. Run the suite against any implementation with pnpm conformance.