Component packs › Clayworks › Puffy Tabs

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.

Puffy Tabs props

PropTypeDefaultDescription
tabsPuffyTab[]
valuenumber
autoplaybooleanShowcase mode: walks through the tabs.
onChange(index: number) => void

Methods on the ref

Use it in React

import PuffyTabs from './PuffyTabs';

<PuffyTabs />

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

More in Clayworks

Good for: Micro-interactions.