Component packs › Clayworks › Puffy Tabs
The active tab inflates and rises out of a clay tray while the old one sinks back in.
Puffy Tabs is a tabs from Clayworks, a component pack with 8 components: Soft clay controls that squash, dent and wobble. Price: $2 for the whole pack.
Built with: inflate / deflate, icon pop, tablist keys.
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 |
|---|---|---|---|
tabs | PuffyTab[] | ||
value | number | ||
autoplay | boolean | Showcase mode: walks through the tabs. | |
onChange | (index: number) => void |
select(index: number): voiddestroy(): voidimport PuffyTabs from './PuffyTabs';
<PuffyTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.