Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Glow Button

Pro

A 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

PropTypeDefault
colorsstring[]

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.