Buttons
Invert and grow button
Invert and grow button: A bordered block that swaps its ink and paper colors and grows from its center while hovered, then snaps flat under the press.
Using Invert and grow button
Invert and grow 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 | Subscribe | Up to 20 characters |
accent | color | #F5C542 | No additional limit in the metadata. |
growth | number | 1.15 | From 1 to 1.35; step 0.01 |
borderWidth | number | 1.5 | From 1 to 4; step 0.5 |
Which frameworks are available for Invert and grow button?
Invert and grow 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 Invert and grow button depend on?
The React metadata lists no additional npm dependencies beyond React.
What accessibility details are visible in Invert and grow button?
The React source for Invert and grow button includes: native elements (button). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Invert and grow button handle reduced motion?
The source scan found no direct useReducedMotion() or matchMedia preference read in Invert and grow button's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.