Component packs › Lenticular › Lenticular Button
Move across the button and its label changes to the detail behind it, strip by strip, as it turns a few degrees.
Lenticular Button is a button from Lenticular, a component pack with 6 lenticular controls: Cards, buttons and headings printed like lenticular plastic: tilt and the picture changes strip by strip. Price: $2 for the whole pack.
Built with: two labels under ridges, pointer-driven tilt, rocks once on focus.
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 |
|---|---|---|---|
label | string | "Download" | First label. Default "Download". |
detail | string | "macOS, 18 MB" | Second label, seen when tilted. Default "macOS, 18 MB". |
onClick | () => void | ||
width | number | 220 | Width in px. Default 220. |
dark | boolean | ||
autoplay | number | false | Showcase mode: rocks between the labels (any number turns it on). |
readonly element: HTMLButtonElementdestroy(): voidimport LenticularButton from './LenticularButton';
<LenticularButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.