Button
Glow Border Button
A pill button with two lights travelling around its border, a soft tint rising inside and an icon badge at the end.
npx motionsnack add glow-border-buttonCustomize
Glow Colour
Glow Core
<GlowBorderButton />Props
17 properties
| Property | Type | Default | Description |
|---|---|---|---|
| onClick | () => void | - | Click handler, for the plain button and the link alike. |
| buttonColor | string | white / near-black in dark | Fill colour. |
| buttonTextColor | string | near-black / near-white in dark | Text colour. The icon badge takes it as its fill. |
| buttonRadius | number | fully round | Corner radius in px. |
| className | string | '' | Extra classes on the button. |
| label | string | 'Get lifetime access' | Text of the button. |
| href | string | '' | Link target. With a value the button is a link, without one a plain button. |
| icon | 'lock' | 'arrow' | 'spark' | 'none' | 'lock' | Icon in the round badge at the end. |
| size | 'sm' | 'md' | 'lg' | 'sm' | Height and type size. |
| fullWidth | boolean | false | Stretch to the width of the parent, label left and icon right. |
| glow | boolean | true | Light travelling around the border. |
| glowColor | string | '#0044ff' | Main colour of the travelling light and of the tint inside the button. |
| glowColorTo | string | '#9cc2ff' | Colour at the bright core of the travelling light. |
| glowSize | number | 144 | Diameter of each light. Larger lights cover more of the border at once. |
| duration | number | 16 | Seconds for one trip around the border. 0 stops the lights. |
| borderWidth | number | 1.5 | Thickness of the lit border. |
| innerGlow | number | 1 | Strength of the coloured tint rising from the bottom edge. 0 leaves the fill plain. |
About Glow Border Button
A call-to-action button for a navigation bar, a hero or a pricing card. Two soft lights travel around the border half a lap apart, following the rounded shape exactly, while a tint in the same colour rises from the bottom edge. The label sits on the left and a round badge with an icon closes the button on the right. It renders as a link when it gets an href and as a plain button otherwise. Colours, speed, size of the lights and the border thickness are props; the motion stops for visitors who prefer reduced motion.
What's included
- Lights that follow the rounded border
- Two glow colours and inner tint
- Lock, arrow or spark icon badge
- Three sizes and a full-width mode
- Link or plain button
- Light and dark look
- Respects reduced motion
- Type
- Animated React button component
- Library
- Components · Button
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add glow-border-button