Component packs › Latch › Chip Tags
Chips behave like pieces in a tray: suggestions fly up on an arc, neighbours get nudged, Backspace flicks the last chip out and a duplicate makes its twin shake.
Chip Tags is a tag input from Latch, a component pack with 8 components: Form and sign-in components that work like little mechanisms. Price: $2 for the whole pack.
Built with: FLIP springs, suggestions, keyboard.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
placeholder | string | ||
value | string[] | Starting tags. | |
suggestions | string[] | Tappable suggestions shown under the field. | |
max | number | 12 | Most tags allowed. Default 12. |
onChange | (tags: string[]) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: adds, flicks and duplicates tags until touched. |
readonly value: string[]add(tag: string): voidremove(tag: string): voiddestroy(): voidimport ChipTags from './ChipTags';
<ChipTags />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Form and sign-in components.