Token field
Turns typed entries into tokens that you can edit and remove.
Tags
token-field-basic-demo.tsx
Installation
The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.
npm
yarn
pnpm
bun
Composition
TokenFieldOwns the value and editing state.
TokenFieldLabelTokenFieldInputTokenFieldDescription
TagFieldValue Splits text into tags at each comma or line break. Pass an instance to the value prop.
Disabled
Tags
​Archived​​2025​
token-field-disabled-demo.tsx
Sizes
​Design​​Research​
token-field-sizes-demo.tsx
API reference
vip/ui adds or changes the props below. For all other props, see React Aria TokenField (opens in a new tab).
- size: "xs" | "sm" | "md" | "lg" | "xl" = "lg"
- Sets the size of the input box. Tokens keep one size.
- label: string
- Label above the field in the default layout. Without it, pass aria-label.
- description: string
- Help text below the field in the default layout.
- placeholder: string
- Input placeholder in the default layout.