# Gradient Border

> A gradient that slowly turns around the edge.

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

- Family: Chrome
- Plan: Creative. Included with Creative.
- Requires: React, Tailwind CSS v4 and the motion package
- Page with a live preview: https://galactrex.com/ui/gradient-border/
- Licence: https://galactrex.com/ui/license/

## Install

```sh
npx @galactrex/ui login   # once, with an API key from https://galactrex.com/account/
npx @galactrex/ui add gradient-border
```

It installs to `components/galactrex/gradient-border.tsx`, with the shared motion helpers beside it. First time in a project: `npx @galactrex/ui init` (setup guide: https://galactrex.com/docs/ui-components-setup/).

## Usage

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

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `colors` | `string[]` | — | Colours round the ring. |
| `width` | `number` | `1.5` | Border width. |
| `duration` | `number` | `8` | Seconds per turn; 0 holds still. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Mono.** Ink and line.
- **Brand.** Your colours.

## Accessibility

- Decorative.

## Motion

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