# Pressable icon toggle

https://fieldbook.lizardi.mx/components/pressable-icon-toggle

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

Pressable icon toggle: A button with an icon and label that stays visually pressed once clicked, for a standalone on or off action such as muting or bolding.

## 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 |
| --- | --- | --- | --- |
| label | text | Bold | Up to 20 characters |
| pressed | boolean | false | No additional limit in the metadata. |
| variant | select | outline | Options: default, outline |

## Usage notes

Pressable icon toggle uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Pressable icon toggle?

Pressable icon 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 Pressable icon toggle depend on?

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

### What accessibility details are visible in Pressable icon toggle?

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

### How does Pressable icon toggle handle reduced motion?

Pressable icon toggle reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: disabled \|\| reduceMotion ? undefined : \{ scale: 0.96 \}; transition: reduceMotion ? "none" : "background-color 140ms ease, color 140ms ease". 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": "pressable-icon-toggle",
    "framework": "react"
  }
}
```

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

## Related open components

- [Chevron flip tile](https://fieldbook.lizardi.mx/components/chevron-flip-tile)
- [Latching icon toggle](https://fieldbook.lizardi.mx/components/latching-icon-toggle)
- [Plus to cross tile](https://fieldbook.lizardi.mx/components/plus-to-cross-tile)
- [Press plate toggle](https://fieldbook.lizardi.mx/components/press-plate-toggle)
- [Captioned Like Button](https://fieldbook.lizardi.mx/components/captioned-like-button)
- [Collapsing share button](https://fieldbook.lizardi.mx/components/collapsing-share-button)
