Component packs › Switchyard › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
legend | string | "Lights" | Printed on the dash beside the knob. Default "Lights". |
import PullKnob from './PullKnob';
<PullKnob />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.