# Glow Card

> A card floating over its own light.

The glow underneath drifts toward the pointer and leaks out from behind the edges.

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

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

<GlowCard color="hsl(200 90% 60%)">…</GlowCard>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | Content. |
| `color` | `string` | — | Any CSS colour; defaults to a theme token. |
| `size` | `number` | `220` | Light size in px. |
| `href` | `string` | — | Makes the whole card one link. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Brand light.** Give it a colour.

## Accessibility

- Decorative layers are aria-hidden.

## Motion

- Spring-following blurred light.
