Buttons
Rim to fill gradient button
Rim to fill gradient button: A dark button shows only a thin gradient rim at rest; hovering drops the inner panel so the gradient floods the whole face, and pressing squeezes it down.
Using Rim to fill gradient button
Rim to fill gradient button uses the inline preview frame with a 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 | Upgrade plan | Up to 24 characters |
accent | color | #FF6A1F | No additional limit in the metadata. |
endColor | color | #FF4D8D | No additional limit in the metadata. |
rimWidth | number | 3 | From 1 to 8; step 1 |
angle | number | 144 | From 0 to 360; step 1 |
pressScale | number | 0.9 | From 0.8 to 1; step 0.01 |
Which frameworks are available for Rim to fill gradient button?
Rim to fill gradient 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 Rim to fill gradient button depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx.
What accessibility details are visible in Rim to fill gradient button?
The React source for Rim to fill gradient button includes: native elements (button). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Rim to fill gradient button handle reduced motion?
Rim to fill gradient button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: transitionDuration: reduce ? "0ms" : "300ms". Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.