Skip to content
Menu

Buttons

Relay fill button

Relay fill button: A half-rounded button that fills on hover through a relay of two racing bars which climb to full height before the label changes colour.

Using Relay fill button

Relay fill 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.

ControlTypeDefaultPreview limits
accentcolor#F5C542No additional limit in the metadata.
labeltextReserve seatUp to 22 characters
sweepMsnumber350From 120 to 800; step 10
gapnumber5From 0 to 20; step 1
radiusnumber10From 0 to 26; step 1
Which frameworks are available for Relay fill button?

Relay fill 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 Relay fill button depend on?

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

What accessibility details are visible in Relay fill button?

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

How does Relay fill button handle reduced motion?

Relay fill button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: climbDelay: reduce ? 0 : followerDelay + sweep + 40; climbDur: reduce ? 200 : Math.max(160, Math.round(sweep * 0.7)); followerDelay: reduce ? 0 : Math.round((gap / 10) * sweep). 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