Buttons
Spinning square flood button
Spinning square flood button: An outlined button that floods with its accent as a spinning rounded square slides in from the corner, so the fill arrives behind a wavy rolling edge.
Using Spinning square flood button
Spinning square flood 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 |
|---|---|---|---|
label | text | Wavy Button | Up to 24 characters |
accent | color | #38BDF8 | No additional limit in the metadata. |
spinSeconds | number | 1.8 | From 0.6 to 6; step 0.1 |
floodSeconds | number | 1.2 | From 0.3 to 2.5; step 0.1 |
squareSize | number | 256 | From 120 to 400; step 8 |
radius | number | 14 | From 0 to 28; step 1 |
Which frameworks are available for Spinning square flood button?
Spinning square flood 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 Spinning square flood button depend on?
The React metadata lists these npm dependencies beyond React: clsx, tailwind-merge.
What accessibility details are visible in Spinning square flood button?
The React source for Spinning square flood 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 Spinning square flood button handle reduced motion?
Spinning square flood button reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Preference-dependent expressions in index.tsx: opacity: reduced && engaged ? 1 : 0; transform: reduced || !engaged ? PARKED : flooded. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.