Skip to content
Menu

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.

ControlTypeDefaultPreview limits
labeltextTwistUp to 18 characters
accentcolor#9BE15DNo additional limit in the metadata.
anglenumber45From 0 to 90; step 5
scalenumber1.5From 1 to 2; step 0.05
sizenumber85From 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.

Connect your agent

Related open components