# Flip face button

https://fieldbook.lizardi.mx/components/flip-face-button

Category: Buttons
![Still of the Flip face button component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/flip-face-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/flip-face-button-0a513d7781.mp4 (5 s, silent)

Flip face button: A button with two faces that trades one for the other on a three dimensional turn, reversing from wherever it is when the pointer leaves.

## 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 |
| --- | --- | --- | --- |
| axis | select | top | Options: top, bottom, left, right |
| duration | number | 480 | From 200 to 900; step 20 |
| accentColor | color | #FF4D8D | No additional limit in the metadata. |
| frontLabel | text | View pricing | Up to 24 characters |
| backLabel | text | Compare plans | Up to 24 characters |

## Usage notes

Flip face button uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Flip face button?

Flip face button 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 Flip face button depend on?

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

### What accessibility details are visible in Flip face button?

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

### How does Flip face button handle reduced motion?

Flip face button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduced ? undefined : \{ backfaceVisibility: "hidden" \}; reduced ? undefined : \{ transformStyle: "preserve-3d" \}; reduced ? \{ opacity: flipped ? 0 : 1 \} : \{\}. 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": "flip-face-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Gradient swap button](https://fieldbook.lizardi.mx/components/gradient-swap-button)
- [Graphite Slab CTA](https://fieldbook.lizardi.mx/components/graphite-slab-cta)
- [Hinged progress button](https://fieldbook.lizardi.mx/components/hinged-progress-button)
- [Light sweep effect](https://fieldbook.lizardi.mx/components/light-sweep-effect)
- [Rim to fill gradient button](https://fieldbook.lizardi.mx/components/rim-to-fill-gradient-button)
- [Rocking icon CTA](https://fieldbook.lizardi.mx/components/rocking-icon-cta)
