# Live keycap

https://fieldbook.lizardi.mx/components/live-keycap

Category: Buttons
![Still of the Live keycap component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/live-keycap.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/live-keycap-45a0c6bb99.mp4 (5 s, silent)

Live keycap: A physical looking keycap that presses down when clicked and mirrors the matching key on the reader's real keyboard.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| keyLabel | text | Alt | Up to 8 characters |
| accent | color | #38BDF8 | No additional limit in the metadata. |
| travel | number | 2 | From 1 to 6; step 1 |
| watchKeyboard | boolean | true | No additional limit in the metadata. |
| tone | select | light | Options: light, dark |

## Usage notes

Live keycap uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Live keycap?

Live keycap is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Live keycap depend on?

The React metadata lists no additional npm dependencies beyond React.

### What accessibility details are visible in Live keycap?

The React source for Live keycap includes: native elements (button); attributes and handlers (onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Live keycap handle reduced motion?

Live keycap reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "live-keycap",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Pressed ledge button](https://fieldbook.lizardi.mx/components/pressed-ledge-button)
- [Three layer push button](https://fieldbook.lizardi.mx/components/three-layer-push-button)
- [Growing ledge button](https://fieldbook.lizardi.mx/components/growing-ledge-button)
- [Hard edge key button](https://fieldbook.lizardi.mx/components/hard-edge-key-button)
- [Lift and Sink Button](https://fieldbook.lizardi.mx/components/lift-and-sink-button)
- [Press block button](https://fieldbook.lizardi.mx/components/press-block-button)
