Buttons
Rotating sky explore button
Rotating sky explore button: A button whose fill is a huge swept disc parked below it; hovering rotates the disc into frame like a turning night sky while tiny stars drift down at staggered heights.
Using Rotating sky explore button
Rotating sky explore 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.
| Control | Type | Default | Preview limits |
|---|---|---|---|
label | text | Explore | Up to 18 characters |
accent | color | #0E6CB9 | No additional limit in the metadata. |
starCount | number | 9 | From 0 to 16; step 1 |
sweepDegrees | number | 105 | From 30 to 360; step 5 |
sweepSeconds | number | 0.5 | From 0.2 to 2; step 0.1 |
radius | number | 12 | From 2 to 28; step 1 |
Which frameworks are available for Rotating sky explore button?
Rotating sky explore 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 Rotating sky explore button depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Rotating sky explore button?
The React source for Rotating sky explore 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 Rotating sky explore button handle reduced motion?
Rotating sky explore button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduced ? { duration: 0 } : { duration: sweepSeconds, ease: [0.33, 0.7, 0.2, 1] }; reduced ? { duration: 0.3, delay: 0 } : { duration: 1.1, delay: active ? star.delay : 0, ease: "easeOut" }; reduced ? { opacity: active ? star.opacity : 0, y: 0 } : active ? { opacity: star.opacity, y: star.drift } : { opacity: 0, y: 0 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.