Skip to content
Menu

Buttons

Shifting frame button

Shifting frame button: A dark tracked button framed by a few pixels of a wide two-tone ramp that slides slowly so the visible frame keeps changing tone.

Using Shifting frame button

Shifting frame button uses the inline preview frame with a 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
labeltextEnterUp to 20 characters
accentcolor#FF4D8DNo additional limit in the metadata.
secondarycolor#F5C542No additional limit in the metadata.
cyclenumber9From 2 to 20; step 0.5
frameWidthnumber3From 1 to 8; step 1
Which frameworks are available for Shifting frame button?

Shifting frame 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 Shifting frame button depend on?

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

What accessibility details are visible in Shifting frame button?

The React source for Shifting frame button includes: native elements (button); 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 Shifting frame button handle reduced motion?

Shifting frame button reads the motion preference in its React source through useReducedMotion(). 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