# Spinning square flood button

https://fieldbook.lizardi.mx/components/spinning-square-flood-button

Category: Buttons
![Still of the Spinning square flood button component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/spinning-square-flood-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/spinning-square-flood-button-b8a2c65976.mp4 (5 s, silent)

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.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| 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 |

## Usage notes

Spinning square flood button uses the inline preview frame with a light/dark theme setting.

### 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 &amp;&amp; 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "spinning-square-flood-button",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Diagonal blob flood button](https://fieldbook.lizardi.mx/components/diagonal-blob-flood-button)
- [Dot flood button](https://fieldbook.lizardi.mx/components/dot-flood-button)
- [Dashed outline tooltip button](https://fieldbook.lizardi.mx/components/dashed-outline-tooltip-button)
- [Diagonal swipe button](https://fieldbook.lizardi.mx/components/diagonal-swipe-button)
- [Draining fill button](https://fieldbook.lizardi.mx/components/draining-fill-button-2)
- [Jello squash button](https://fieldbook.lizardi.mx/components/jello-squash-button)
