Skip to content

Keycap Button

A 3D mechanical keycap with sloped walls, matte plastic and backlight; it presses down with a bounce and can click.

Plan
Pro · commercial license
Dependencies
React only
Props
9 (8 adjustable)

Included in Pro and Lifetime. See pricing

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenReactNode"Send"Legend printed on the key.
hintstring""Small legend in the top corner.
unitsnumber2Width of the key in keyboard units (1 = a regular key, 2.25 = Enter).
sizenumber104Size of 1 unit, in px.
colorstring"#e9e5da"Color of the key's plastic.
legendColorstring"#272a33"Color of the legend.
glowstring"#5b6cff"Color of the backlight that peeks out from underneath.
travelnumber8How far it sinks when pressed, in px.
soundbooleanfalsePlays a synthesized "clack" on press.

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Keycap Button

npx shadcn@latest add @furin-pro/keycap-button

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • A button that fills with liquid from the exact point where the cursor enters, with a meniscus edge and light bubbles, and drains toward where it leaves.

    Buttons

  • A physical toggle-switch lever with a satisfying click.

    Buttons

  • A button that fires physical confetti: paper pieces that spin in 3D, fall with air drag and flutter.

    Buttons