Component packs › Seek › Fold Chips

Fold Chips

Chips that never overflow: extras tuck behind each other into a "+3" counter that fans them back out, and the result count rolls as you remove one.

Fold Chips is a filter chips from Seek, a component pack with 8 components: Search and command palette components that show exactly what matched. Price: free.

Built with: fold counter, spring layout, rolling count.

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.

Install with the shadcn CLI: npx shadcn@latest add https://motionmart.store/r/fold-chips.json

Fold Chips props

PropTypeDefaultDescription
valuestring[]Chips to start with.
basenumberResults for the demo count: base minus a little per filter.
onChange(chips: string[]) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: adds and removes filters until touched.

Methods on the ref

Use it in React

import FoldChips from './FoldChips';

<FoldChips />

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

More in Seek

Good for: Search and command palette.