# Radial Glow

> One soft pool of light you can place anywhere.

The simplest way to give a flat section a focal point, optionally breathing.

- Family: Backgrounds
- Plan: Creative. Included with Creative.
- Requires: React, Tailwind CSS v4 and the motion package
- Page with a live preview: https://galactrex.com/ui/radial-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 radial-glow
```

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

<section className="relative overflow-hidden">
  <RadialGlow />
  <h1 className="relative">New</h1>
</section>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `x` | `number` | `50` | Centre across the width, in %. |
| `y` | `number` | `0` | Centre down the height, in %. |
| `size` | `number` | `70` | Diameter as % of the width. |
| `intensity` | `number` | `0.22` | Strength at the centre, 0 to 1. |
| `pulse` | `boolean` | `true` | A slow breath. |
| `color` | `string` | `var(--gxui-glow)` | Glow colour. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Top glow.** Light from above the fold.
- **Still.** `pulse={false}` for a fixed glow.

## Accessibility

- Decorative only and aria-hidden; never takes pointer events.

## Motion

- Scale and opacity only.
- Still offscreen.
- Reduced motion: a fixed glow.
