Switchyard

Toggle switches that work like the real hardware: rockers, bolts, breakers, keys and levers.

Eight toggle switches, each a different real mechanism, all on one toggle contract (role="switch", keyboard, onChange, setChecked). Rocker Switch tilts in its bezel and its lamp strikes up with a neon flicker. Slide Bolt lifts its handle, runs the bar into the keeper and drops the handle into its slot. Pen Click is a push-push ballpoint: through the clear barrel you watch the spring compress and the cam turn as the tip pokes out. Breaker Switch trips when your action fails or someone presses Test, and resets by going fully off first. Key Turn is a solid key in a lock, shaded by one light as it turns; drag it round or click. Safety Cover makes you lift a hinged guard before the switch, and closing the guard pushes the switch off. Railway Lever is a heavy signal-box lever: the catch lifts, the lever swings with weight and drops into the far notch with a clunk. Pull Knob is an old car dashboard knob that stretches against a rubbery spring and lights the dash lamp. Dark and light looks follow the page, reduced motion, zero dependencies.

Type: Component packs. Price: $2. Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). Tags: animated toggle switch, custom switch component, React toggle switch, skeuomorphic switch, circuit breaker toggle, safety switch, lever switch, micro interaction.

What is inside (8 toggle switches)

Good for: Skeuomorphic UI.

More like this

More component packs