Component packs › Stitch › Stitch Switch
The thumb is a sewing button that leaves a running stitch behind it, with a loose end of thread swinging from it.
Stitch Switch is a toggle from Stitch, a component pack with 6 thread controls: Controls that are sewn, knitted and embroidered, with real thread physics. Price: $2 for the whole pack.
Built with: sewn path, rope tail, unpick on the way back.
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 | ||
size | number | ||
onChange | (checked: boolean) => void | ||
autoplay | number | false |
readonly checked: booleansetChecked(checked: boolean, silent?: boolean): voiddestroy(): voidimport StitchSwitch from './StitchSwitch';
<StitchSwitch />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.