Component packs › Fastener › Zip Toggle

Zip Toggle

The slider runs along a fabric tab, meshing the teeth behind it while the rows ahead pull together; its pull tab swings from the speed.

Zip Toggle is a toggle from Fastener, a component pack with 6 fastener controls: Controls that fasten like clothing: zips that mesh, studs that snap, hook-and-loop that tears, buckles that click. Price: $2 for the whole pack.

Built with: meshing teeth, drag the slider, pendulum pull tab.

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.

Zip Toggle props

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

Methods on the ref

Use it in React

import ZipToggle from './ZipToggle';

<ZipToggle />

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

More in Fastener

Good for: Buttons.