# Dot flood button

https://fieldbook.lizardi.mx/components/dot-flood-button

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

Dot flood button: An outlined pill with a small dot beside its label; hovering grows the dot until it floods the whole button and the label swaps to its inverted twin.

## 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 | Start a trial | Up to 28 characters |
| accent | color | #FF6A1F | No additional limit in the metadata. |
| dotSize | number | 8 | From 4 to 16; step 1 |
| floodMs | number | 300 | From 120 to 900; step 20 |
| showDot | boolean | true | No additional limit in the metadata. |

## Usage notes

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

### Which frameworks are available for Dot flood button?

Dot 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 Dot flood button depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx.

### What accessibility details are visible in Dot flood button?

The React source for Dot 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 Dot flood button handle reduced motion?

Dot flood button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: dotTransition: reduced ? \{ scale: \{ duration: 0 \}, opacity: \{ duration: 0.16 \} \} : \{ duration: floodSeconds, ease: \[0.65, 0, 0.35, 1\] \}; edgeMs: reduced ? 150 : floodMs; labelTransition: reduced ? \{ x: \{ duration: 0 \}, opacity: \{ duration: 0.16 \} \} : \{ duration: floodSeconds, ease: \[0.65, 0, 0.35, 1\] \}. 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": "dot-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)
- [Spinning square flood button](https://fieldbook.lizardi.mx/components/spinning-square-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)
