# Gradient Text

> A slow gradient flowing through the letters.

Monochrome by default so it reads as polish, not decoration; pass brand colours when you mean it.

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

It installs to `components/galactrex/gradient-text.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 { GradientText } from "@/components/galactrex/gradient-text";

<GradientText as="h1">Every app you own</GradientText>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | Text. |
| `as` | `ElementType` | `"span"` | Element. |
| `colors` | `string[]` | — | Gradient colours. |
| `duration` | `number` | `6` | Seconds per flow; 0 holds still. |
| `angle` | `number` | `90` | Degrees. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Mono.** Ink into grey.
- **Brand.** Your colours.

## Accessibility

- Real text; keep contrast high across all stops.

## Motion

- Background position, alternating.
- Reduced motion: still gradient.
