Glow Button
ProA rotating gradient border with a soft glow underneath.
Installation
pnpm dlx shadcn@latest add @viewport/glow-button
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| colors | string[]Gradient stops for the rotating border and glow. | ["var(--brand)", "var(--brand-2)", "var(--brand-3)", "var(--brand)"] |
Accessibility
- A native button with a visible focus ring.
- Rotation stops under reduced motion; the gradient remains.