Component packs › Switchyard › Pen Click
Through the clear barrel you see the spring compress and the cam turn one step as the tip pokes out.
Pen Click 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: visible spring and cam, three coupled springs, push-push latch.
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.
Good for: Skeuomorphic UI.