Skip to content
Menu

Buttons

Dot flood button

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.

Using Dot flood button

Dot 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.

ControlTypeDefaultPreview limits
labeltextStart a trialUp to 28 characters
accentcolor#FF6A1FNo additional limit in the metadata.
dotSizenumber8From 4 to 16; step 1
floodMsnumber300From 120 to 900; step 20
showDotbooleantrueNo additional limit in the metadata.
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.

Connect your agent

Related open components