Buttons
Rotating face plate
Rotating face plate: A button whose labelled dark plate turns a corner and grows when engaged, exposing the accent slab underneath as four triangles, then shrinks and swaps colors with it while pressed.
Using Rotating face plate
Rotating face plate 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 |
|---|---|---|---|
label | text | Twist | Up to 18 characters |
accent | color | #9BE15D | No additional limit in the metadata. |
angle | number | 45 | From 0 to 90; step 5 |
scale | number | 1.5 | From 1 to 2; step 0.05 |
size | number | 85 | From 60 to 140; step 5 |
Which frameworks are available for Rotating face plate?
Rotating face plate 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 Rotating face plate depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Rotating face plate?
The React source for Rotating face plate includes: attributes and handlers (aria-hidden, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Rotating face plate handle reduced motion?
Rotating face plate reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: turn: reduced ? 0 : engaged ? angle : 0. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.