Component packs › Slats › Louvre Toggle

Louvre Toggle

The louvres tilt open top first and coloured light comes through the gaps.

Louvre Toggle is a toggle from Slats, a component pack with 6 blind and shutter components: Reveals, modals, tabs and loaders built from blinds, louvres and shutters. Price: $2 for the whole pack.

Built with: louvre chain, light through gaps, switch role.

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.

Louvre Toggle props

PropTypeDefaultDescription
checkedboolean
disabledboolean
labelstringAccessible name, e.g. "Daylight mode".
onChange(checked: boolean) => void
autoplaynumber | falseShowcase mode: toggles itself every N ms while visible.

Methods on the ref

Use it in React

import LouvreToggle from './LouvreToggle';

<LouvreToggle />

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

More in Slats

Good for: Dialogs and drawers, Skeuomorphic UI.