Keycap

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-keycap

About this component

A wide mechanical keycap in signal orange with a dished top and a tall skirt, lit from underneath by a slow colour-cycling backlight. Hover brightens the underglow; a press gives the full key travel.

Triggers

  • Hover
  • Click
  • Glow
  • 3D
  • Ambient

Techniques

  • Radial gradient
  • Keyframes
  • CSS transition
  • Filter

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native button named by its label; the glow, the skirt and the return arrow are aria-hidden and :focus-visible draws an outline.

Reduced motion

The backlight stops cycling and the key moves without a transition.

Use it in anything you build, commercial and client work included. Licence

More buttons

See all
LeanGet code
LettersGet code
MemphisGet code
OathGet code