Component packs › Seek › 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
| Prop | Type | Default | Description |
|---|---|---|---|
value | string[] | Chips to start with. | |
base | number | Results for the demo count: base minus a little per filter. | |
onChange | (chips: string[]) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: adds and removes filters until touched. |
readonly value: string[]add(chip: string): voiddestroy(): voidimport FoldChips from './FoldChips';
<FoldChips />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Search and command palette.