MultiSelect
Choose several values.
Tags the person types; Enter or a delimiter adds one.
Tags the person types. Enter or a comma adds one. Suggestions and a maximum are optional. A fixed list is MultiSelect.
A duplicate is not added and says so. The first Backspace on an empty query highlights the last tag; the second removes it.
Wrap with Field. Each tag is kit Tag. Use MultiSelect when every value must come from a list.
Tags the person types. Enter or a delimiter adds one. Optional suggestions and an optional maximum with a visible count.
import { TagInput } from "agentic-ds-kit";From contracts/taginput.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| id | string | Yes | — | — |
| size | lg | md | sm | No | md | Same 32 / 36 / 40 frame as Input and Button. lg uses md tags. |
| value | string[] | No | — | — |
| defaultValue | string[] | No | — | — |
| onChange | function | No | — | (value: string[]) => void |
| placeholder | string | No | Add a tag | — |
| disabled | boolean | No | false | — |
| error | boolean | No | false | — |
| suggestions | string[] | No | — | Shown while typing. Picking one adds a tag. |
| delimiters | string[] | No | [","] | Single-character keys that commit a tag, besides Enter. |
| maxTags | number | No | — | Most tags allowed. Shows a count such as 3/8 at the end of the field. Adds past it are blocked with a message. |
| name | string | No | — | — |
| ariaLabel | string | No | — | — |
| describedBy | string | No | — | — |