UI
TagInput
Multi-value chip input β press Enter or comma to add tags, Backspace to remove.
Quick Preview
Installation
# No extra dependencies
// Copy component fromsrc/components/ui/TagInput.tsx
Usage
import TagInput from '@/components/ui/TagInput'<TagInputplaceholder="Add labelsβ¦"defaultTags={['react', 'ui']}onChange={(tags) => setTags(tags)}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | 'Add a tagβ¦' | Input placeholder text |
maxTags | number | - | Maximum number of tags allowed |
onChange | (tags: string[]) => void | - | Called when tags change |