Buttons
Flip face button
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.
Using Flip face button
Flip face button uses the inline preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
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 |
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.