Component packs › Switchyard › Pull Knob

Pull Knob

Pull the dashboard knob and the chrome shaft slides out; pull past the stop and it stretches like rubber, then snaps back and lights the dash lamp.

Pull Knob 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: rubber-band pull, spring overshoot, shadow and lamp.

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.

Pull Knob props

PropTypeDefaultDescription
legendstring"Lights"Printed on the dash beside the knob. Default "Lights".

Use it in React

import PullKnob from './PullKnob';

<PullKnob />

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

More in Switchyard

Good for: Skeuomorphic UI.