Utility
Terminal
█
tag-input-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/tag-input
Usage
import { TagInput } from "@/components/ui/tag-input";<TagInput placeholder="Add a tag…" onChange={(tags) => {}} />API Reference
TagInput
| Prop | Type | Default |
|---|---|---|
value | string[] | - |
onChange | (tags: string[]) => void | - |
placeholder | string | "Type and press Enter…" |
maxTags | number | - |
delimiter | string | - |