Component packs › Lenticular › Lenticular Toggle

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.

Lenticular Toggle props

PropTypeDefaultDescription
checkedboolean
disabledboolean
labelstring"Notifications"Accessible name. Default "Notifications".
sizenumberScale factor (1 = 76 × 40 px).
onChange(on: boolean) => void
darkboolean
autoplaynumber | falseShowcase mode: toggles itself every N ms.

Methods on the ref

Use it in React

import LenticularToggle from './LenticularToggle';

<LenticularToggle />

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

More in Lenticular

Good for: Skeuomorphic UI.