Account

Chrome

Creative

Gradient Border

Monochrome by default; brand colours for a feature card or a premium plan.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add gradient-border

Usage

Example
import { GradientBorder } from "@/components/galactrex/gradient-border";

<div className="relative rounded-xl p-6"><GradientBorder />Pro</div>

Source

Installs to components/galactrex/gradient-border.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
colorsstring[]—Colours round the ring.
widthnumber1.5Border width.
durationnumber8Seconds per turn; 0 holds still.
classNamestring—Extra classes for the outer element.

Variants

  • Mono. Ink and line.
  • Brand. Your colours.

Accessibility

  • Decorative.

Motion and reduced motion

  • One rotating layer through a ring mask; pauses offscreen.
  • Reduced motion: still.