Keycap

Controls made of mechanical keyboard keys: real travel, a tactile bump and a switch LED under every cap.

Six controls built from mechanical keyboard keys, all on one key engine: sculpted caps sitting in a plate, 4 px of travel that sticks at the tactile bump and bottoms out with a small rebound, and a switch LED that lights the plate. Keycap Button sinks while you hold it and stays down and lit while your async action runs. Stem Toggle lifts its cap off to show the switch underneath, turns the cross stem to the pack colour and drops the cap back on with the new legend. Lock Key is a latching key as a checkbox: it bottoms out and comes back only half way, with the LED in the cap lit. Spacebar Slider is a volume slider on a spacebar: press and drag and the bar dips and tilts against its stabiliser while a row of LEDs in the case fills. Key Row Tabs latch the active key half down and spring the old one back. Typing Loader types your status line on a small keyboard, pressing the key for every letter. Dark and light looks follow the page, keyboard and screen reader ready, 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: keyboard key button CSS, mechanical keyboard UI, keycap button, animated button, tabs component, typing animation loader, custom slider, micro interaction.

What is inside (6 keyboard controls)

Good for: Buttons.

More like this

More component packs