Component packs › Switchyard › Slide Bolt

Slide Bolt

The handle swings up, the bar runs through its guides into the keeper, knocks the stop and the handle drops into its slot.

Slide Bolt is a toggle from Switchyard, a component pack with 8 toggle switches: Toggle switches that work like the real hardware: rockers, bolts, breakers, keys and levers. Price: $2 for the whole pack.

Built with: three-step mechanism, gravity drop with bounce, handle turns about the bar.

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.

More in Switchyard

Good for: Skeuomorphic UI.