A shadcn-style tags input component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/tags-input

Usage

import * as TagsInput from "@/components/ui/tags-input"

Read exported parts in src/components/ui/tags-input.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Basic

Allow Duplicates

Blur Behavior

Controlled Input Value

Controlled

React
Solid

Delimiter

Disabled

React
Solid
Vue

Disabled Editing

Invalid

Max Tag Length

Max With Overflow

Nested

frontend
ui
react

Paste Behavior

Programmatic Control

Readonly

React
Solid
Vue

Root Provider

values: []

Sanitize

Validation

With Combobox

With Field

Additional info

API reference

This component mirrors the upstream Ark UI primitive.

See the ARK UI documentation for the full API.

Accessibility

See the Ark UI documentation for clarification.