VanillaReactLight & dark381 views
Three vintage mechanical-keyboard keycaps in three finishes — with domed tops, tall front skirts, and a deep physical press: the cap sinks, the skirt compresses, and the contact shadow tightens, all via GPU-friendly transforms and static shadow swaps.
Get the code for free
Create a free account to copy or download the full source.
Button component
Three vintage mechanical-keyboard keycaps in three finishes — with domed tops, tall front skirts, and a deep physical press: the cap sinks, the skirt compresses, and the contact shadow tightens, all via GPU-friendly transforms and static shadow swaps.
:active and on keyboard activation: the whole key sinks, the top face travels down inside the shell so the front skirt visibly compresses, and the contact shadow flips to a pre-defined tighter shadow; releasing plays a springy settle-back<button type="button"> elements with no toggle statecolor-mix percentage custom property, so the worn black cap keeps only a faint highlightaria-label naming its key, e.g. "enter key"role="group" with an aria-labeljs/app.js adds is-pressed on Space/Enter keydown and removes it on keyup/blur, so keyboard activation plays the same sink animation as a mouse press:focus-visible with --ring outline and 3px offset on each keycapprefers-reduced-motion: reduce collapses all transitions to 0.01ms — the press becomes instantOpen Keycap Buttons in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the button is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
300+ production-ready components and Atheros AI models. Every paid plan includes access to the whole Atheros — AI Builder and Learning.
Starting at $9.9 per month, billed annually