0Views
0Copies

API Reference
Props for <AccretionButton />
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#ff6b1a" | The button's fill; its edge and glow are mixed from it. |
| textColor | string | "#ffffff" | The label and arrow. |
| coolGasColor | string | "#c8280a" | Gas far from the cursor. |
| warmGasColor | string | "#ff6b1a" | Gas warming as the cursor nears, and the photon ring's glow. |
| hotGasColor | string | "#ffb27a" | Gas hugging the edge. |
| whiteHotColor | string | "#fff4e6" | The flash as gas falls through the edge, and the hottest gas by the cursor. |
| ringColor | string | "#ffd2a8" | The thin line that glows along the edge while hovered. |
| text | string | "Hover me" | The button's label. |
| font | FontValue | {"fontFamily":"IBM Plex Sans","fontWeight":600,"fontSize":14} | The label's family, weight and size. The component doesn't load the font: add it to your app. |
| showArrow | boolean | true | An arrow after the label that nudges right on hover. |
| mode | 'cursor' | 'idle' | 'always' | "cursor" | When the gas gathers: as the cursor nears (Cursor), as a loose ring always circling (Idle), or as a tight ring always on (Always). |
| width | number | 0 | The button's width; 0 fits it to its label. |
| height | number | 40 | The button's height. |
| radius | number | 40 | Rounds the corners; half the height or more makes a pill. |
| reach | number | 110 | How far past the button's edge its gravity reaches. |
| pace | number | 1 | How fast the gas orbits and spirals in. |
| spread | number | 1 | The ring's thickness and orbit speed; larger suits bigger buttons. |
| href | string | — | Renders the button as a link to this address. |
Motion score
Compositor-only
- Category
- Buttons
- Framework
- React
- Published
- Nov 6, 2026
- Dependencies
- Variants
Accretion Button: a button glow effect for React
A glowing button that pulls hot gas into a ring around its edge as the cursor gets close. The ring tightens on hover, spins faster the longer you stay, and sends the gas outward when you press.
Use Accretion Button for the one action you want people to notice, like a sign-up or a pre-order. Set the fill, label, gas colors, reach, pace and ring width, or add an href to use it as a link. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.
What is Accretion Button?#
Accretion Button is a button glow effect for React that responds before anyone clicks. The glow isn't a shadow: it's gas drifting toward the edge of the button and settling into a ring. It's one React file with no animation library, and its only dependency is cn.
How Accretion Button works#
In the default cursor mode, the gas stays loose until the cursor comes within reach of the button. As it gets closer, the gas warms from the cool color to the hot color and falls toward the edge. On hover, the ring tightens and a thin line lights up along the edge. Stay longer and it spins faster. A press sends the gas outward.
The mode prop decides when the gas gathers. idle keeps a loose ring circling all the time, and always holds a tight ring on.
Customization options#
Every color in the gas has its own prop, from coolGasColor to whiteHotColor. By default the button is 40 px high and sizes itself to fit its label. Use width, height and radius to change that, and raise spread on bigger buttons. The label font isn't bundled, so load it in your app.
Use cases#
- Primary call to action. A glow button for a pre-order, sign-up or launch on a dark hero.
- Branded looks. Blue Giant is a cobalt pill with ice-blue gas. Violet Orbit is a violet pill with a calmer ring that keeps circling. White Dwarf is a white pill with dark text and a hot ring held on.
- Links. Set
hrefand it renders as a link with the same glow.
FAQs#
Touch screens have no cursor, so set mode to idle or always to keep the ring visible.
Yes. Set href and it renders as a link with the same glow.
Yes. It's a Pro component, and anything you install is yours to keep after a plan ends.
It works in Next.js, Vite and Astro with Tailwind CSS v4.