Tag input
A field that turns what you type into tags, with suggestions as you type and a pasted list split into tags.
npx shadcn add https://kinoui.com/r/tag-input.jsonCopy install command
Examples
Topics
Payments
Billing
Default
Pick a suggestion, or type a tag and press Enter or a comma. A tag typed again is pointed out instead of added twice.
Alert keywords
outage
chargeback
refund
Typed only
Without suggestions, no list opens and any text becomes a tag. Paste “latency, timeout, 502” for three at once.
In a form
In a Field, its label names the input and an invalid field marks it, with the error under it.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/tag-input.json- Files
lib/reduce-motion.tslib/scroll.tslib/refs.tslib/resize.tslib/swap.tsxlib/popup.tslib/glide.tsxcomponents/kino/tooltip.tsxlib/cut.tsxcomponents/kino/input.tsxcomponents/kino/label.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxcomponents/kino/separator.tsxlib/run-progress.tslib/highlight.tslib/menu.tsxcomponents/kino/select.tsxlib/filter-list.tsxlib/chip.tsxlib/flow.tscomponents/kino/combobox.tsxlib/announce.tsxlib/controllable.tscomponents/kino/tag-input.tsx- Packages
@base-ui/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
TagInput
TagInputValue
TagInputChip
TagInputList
Accessibility
- The input is a combobox and the suggestions a listbox: arrow keys move the highlight, Enter picks, and Escape closes the list.
- Escape on a closed field lets go of the typed text and keeps every tag.
- Each tag added or removed is read out, and so is a tag typed again: “Billing is already added”.
- Name it with a
Fieldand its label, oraria-labelon the input. Each remove button is named after its tag. - When the system asks for less motion, tags move to their new places at once and only fade.