Buttons
Concentric ring button
Concentric ring button: A button sitting over a huge stack of concentric rings that slides across on hover while the whole plate shifts from a warm ramp to a cool one.
Using Concentric ring button
Concentric ring 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.
| Control | Type | Default | Preview limits |
|---|---|---|---|
accent | color | #FF6A1F | No additional limit in the metadata. |
label | text | Calibrate | Up to 20 characters |
rings | number | 5 | From 3 to 8; step 1 |
ringWidth | number | 8 | From 4 to 16; step 1 |
shift | number | 32 | From 0 to 80; step 4 |
Which frameworks are available for Concentric ring button?
Concentric ring 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 Concentric ring button depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Concentric ring button?
The React source for Concentric ring 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 Concentric ring button handle reduced motion?
Concentric ring button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: transform: cool && !reduced ? "translateX(" + shift + "px)" : undefined. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.