# Glow Border

> A soft light around a lit panel, breathing slowly.

For the focused field, the selected plan or the active session; fades with `active`.

- 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/glow-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 glow-border
```

It installs to `components/galactrex/glow-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 { GlowBorder } from "@/components/galactrex/glow-border";

<div className="relative rounded-xl p-6"><GlowBorder active={selected} />Creative</div>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `active` | `boolean` | `true` | Glowing while true. |
| `blur` | `number` | `18` | Blur in px. |
| `breathe` | `boolean` | `true` | Slow breathing. |
| `color` | `string` | — | Any CSS colour; defaults to a theme token. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Selected.** Bind `active` to selection.

## Accessibility

- Decorative; selection must also be stated.

## Motion

- Opacity only.
- Reduced motion: steady.
