Buttons
Refresh sweep spin
Refresh sweep spin: A refresh button whose darker icon panel sweeps across the face on hover while the arrow makes exactly one turn, then keeps spinning through a busy run before easing back to rest.
Using Refresh sweep spin
Refresh sweep spin 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 | Refresh | Up to 20 characters |
accent | color | #2F86FF | No additional limit in the metadata. |
width | number | 150 | From 120 to 240; step 2 |
spinMs | number | 700 | From 300 to 1600; step 50 |
busyMs | number | 1600 | From 400 to 4000; step 100 |
Which frameworks are available for Refresh sweep spin?
Refresh sweep spin 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 Refresh sweep spin depend on?
The React metadata lists no additional npm dependencies beyond React.
What accessibility details are visible in Refresh sweep spin?
The React source for Refresh sweep spin includes: native elements (button); attributes and handlers (aria-busy, aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Refresh sweep spin handle reduced motion?
Refresh sweep spin reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.