Component packs › Slats › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | ||
disabled | boolean | ||
label | string | Accessible name, e.g. "Daylight mode". | |
onChange | (checked: boolean) => void | ||
autoplay | number | false | Showcase mode: toggles itself every N ms while visible. |
readonly checked: booleansetChecked(checked: boolean, silent?: boolean): voiddestroy(): voidimport LouvreToggle from './LouvreToggle';
<LouvreToggle />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers, Skeuomorphic UI.