Component packs › Latch › Chip Tags

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.

Chip Tags props

PropTypeDefaultDescription
labelstring
placeholderstring
valuestring[]Starting tags.
suggestionsstring[]Tappable suggestions shown under the field.
maxnumber12Most tags allowed. Default 12.
onChange(tags: string[]) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: adds, flicks and duplicates tags until touched.

Methods on the ref

Use it in React

import ChipTags from './ChipTags';

<ChipTags />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Latch

Good for: Form and sign-in components.