Accretion Button — an orange pill button ringed by glowing hot gas on a dark background

API Reference

Props for <AccretionButton />

S

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 href and it renders as a link with the same glow.

FAQs