# Edge Glow

> A bright line along one edge, lit from above.

Fades out toward its ends with a soft spill into the surface, and draws outward from the middle on arrival.

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

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

<div className="relative rounded-xl p-6"><EdgeGlow />…</div>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `edge` | `"top" \| "bottom" \| "left" \| "right"` | `"top"` | Which edge. |
| `spill` | `number` | `40` | Glow spill in px. |
| `color` | `string` | — | Any CSS colour; defaults to a theme token. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Panel top.** The default modern panel edge.

## Accessibility

- Decorative.

## Motion

- Scale from the middle and a fade on arrival.
- Reduced motion: present.
