Component packs › Kintsugi › Crackle Toggle

Crackle Toggle

Switch it on and gold runs into the crackle glaze cell by cell from the side the bead leaves; off, it drains back.

Crackle Toggle is a toggle from Kintsugi, a component pack with 6 crack and mend controls: Controls glazed like ceramic: errors crack them, and the repair flows in as gold. Price: $2 for the whole pack.

Built with: craquelure network, gold fills by position, drains when off.

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.

Crackle Toggle props

PropTypeDefaultDescription
checkedboolean
disabledboolean
labelstring"Toggle"Accessible name. Default "Toggle".
onChange(checked: boolean) => void

Methods on the ref

Use it in React

import CrackleToggle from './CrackleToggle';

<CrackleToggle />

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

More in Kintsugi

Good for: Skeuomorphic UI.