474
Sponsor

Tag Input

Add and remove tags inline

Terminal
tag-input-demo
No opentui live preview is registered for this example yet.

Installation

$ pnpm dlx shadcn@latest add @termcn/tag-input

Usage

import { TagInput } from "@/components/ui/tag-input";
<TagInput placeholder="Add a tag…" onChange={(tags) => {}} />

API Reference

TagInput

PropTypeDefault
valuestring[]-
onChange(tags: string[]) => void-
placeholderstring"Type and press Enter…"
maxTagsnumber-
delimiterstring-