Button
Glow Button
NewA filled pill with a soft light under it in the button's own colour.
npx motionsnack add glow-buttonCustomize
<GlowButton />Props
11 properties
| Property | Type | Default | Description |
|---|---|---|---|
| onClick | () => void | - | Click handler, for the plain button and the link alike. |
| icon | ReactNode | - | Accepted so sections can pass one, but this button shows no icon. |
| buttonColor | string | near-black / near-white in dark | Fill colour. |
| buttonTextColor | string | white / near-black in dark | Text colour. |
| buttonRadius | number | fully round | Corner radius in px. |
| className | string | '' | Extra classes on the button. |
| label | string | 'Get started' | Text of the button. |
| href | string | '' | Link target. With a value the button is a link, without one a plain button. |
| fullWidth | boolean | false | Stretch to the width of the parent. |
| onDark | boolean | false | Keep the button light in the light look too, for a dark banner or photo behind it. |
| glow | number | 1 | Size of the light under the button (0 = none). |
About Glow Button
A solid pill with the label only and a soft light spilling under it. The light takes the colour of the button, so an accent-coloured button glows in the accent. Its size is a prop. It renders as a link when it gets an href and as a plain button otherwise. Colour, text colour and corner radius are props. It takes the same props as the other library buttons, so it can be handed to any section through its Button prop.
What's included
- Soft light under the button in its own colour
- Glow size as a prop
- Link or plain button
- Full-width mode
- Fits every section's Button prop
- Light and dark look
- Type
- Animated React button component
- Library
- Components · Button
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-20
- Install
npx motionsnack add glow-button