Components › Forms

Tag input

Type and press Enter or comma to add tags, with suggestions and a limit.

Installation

npx plankui@latest add tag-input

Usage

import { TagInput } from "@/components/ui/tag-input";

<TagInput defaultValue={["React"]} suggestions={["TypeScript", "Figma"]} max={6} />

API reference

PropTypeDefaultDescription
value / onValueChangestring[] / (tags) => voidTags.
suggestionsstring[][]Offered while typing.
maxnumberMost tags allowed.

View the source on GitHub