Component packs › Dovetail › Dovetail Toggle
A walnut tail board slides into the sockets between maple pins and knocks home; a brass-set pin marks it on.
Dovetail Toggle is a toggle from Dovetail, a component pack with 6 woodwork controls: Dropdowns, toggles, tabs and dialogs made of real-looking oak, walnut and maple. Price: $2 for the whole pack.
Built with: true dovetail geometry, knock on seating, two species.
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 | ||
dark | boolean | follows the page | Force the dark (true) or light (false) look. Default: follows the page. |
onChange | (on: boolean) => void | ||
autoplay | number | false | Showcase mode: toggles every N ms while visible. |
readonly checked: booleansetChecked(v: boolean, silent?: boolean): voiddestroy(): voidimport DovetailToggle from './DovetailToggle';
<DovetailToggle />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Menus and popovers, Skeuomorphic UI.