Component packs › Lenticular › Lenticular Toggle
The track print changes from off to on strip by strip, following the thumb as it slides across.
Lenticular Toggle is a toggle 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: print follows the thumb, spring thumb with stretch, track turns as it moves.
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 |
|---|---|---|---|
checked | boolean | ||
disabled | boolean | ||
label | string | "Notifications" | Accessible name. Default "Notifications". |
size | number | Scale factor (1 = 76 × 40 px). | |
onChange | (on: boolean) => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: toggles itself every N ms. |
readonly checked: booleansetChecked(v: boolean, silent?: boolean): voiddestroy(): voidimport LenticularToggle from './LenticularToggle';
<LenticularToggle />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.