# Press plate toggle

https://fieldbook.lizardi.mx/components/press-plate-toggle

Category: Buttons
![Still of the Press plate toggle component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/press-plate-toggle.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/press-plate-toggle-7b2f9df08f.mp4 (5 s, silent)

Press plate toggle: A bare two-state button whose filled plate cross-fades in behind its content when pressed, with the state readable and settable from outside the button itself.

## 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 |
| --- | --- | --- | --- |
| startPressed | boolean | false | No additional limit in the metadata. |
| accent | color | #38BDF8 | No additional limit in the metadata. |
| radius | number | 8 | From 0 to 18; step 1 |
| fadeMs | number | 160 | From 0 to 500; step 20 |
| showControls | boolean | true | No additional limit in the metadata. |

## Usage notes

Press plate toggle uses the card preview frame with a light/dark theme setting.

### Which frameworks are available for Press plate toggle?

Press plate toggle 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 Press plate toggle depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx.

### What accessibility details are visible in Press plate toggle?

The React source for Press plate toggle includes: attributes and handlers (aria-hidden, aria-label, aria-pressed). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Press plate toggle handle reduced motion?

Press plate toggle reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduceMotion ? 0 : fadeMs; reduceMotion ? undefined : \{ scale: 0.94 \}. 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": "press-plate-toggle",
    "framework": "react"
  }
}
```

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

## Related open components

- [Latching icon toggle](https://fieldbook.lizardi.mx/components/latching-icon-toggle)
- [Captioned Like Button](https://fieldbook.lizardi.mx/components/captioned-like-button)
- [Collapsing share button](https://fieldbook.lizardi.mx/components/collapsing-share-button)
- [Counting follow chip](https://fieldbook.lizardi.mx/components/counting-follow-chip)
- [Inset sheen button](https://fieldbook.lizardi.mx/components/inset-sheen-button)
- [Key Turn Chip](https://fieldbook.lizardi.mx/components/key-turn-chip)
