# Blur Text

> Words come into focus one at a time.

Each word (or letter) starts blurred and slightly low and sharpens into place. For headlines that should land softly.

- 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/blur-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 blur-text
```

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

<BlurText as="h1" text="Quiet tools for loud ideas." />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `text` | `string` | — | The text. |
| `as` | `ElementType` | `"p"` | Element. |
| `by` | `"word" \| "char"` | `"word"` | Pieces. |
| `trigger` | `"mount" \| "inView" \| "hover" \| "manual"` | `"inView"` | When it plays. |
| `active` | `boolean` | — | Plays when true, for trigger="manual". |
| `stagger` | `number` | `0.06` | Seconds between pieces. |
| `blur` | `number` | `10` | Starting blur in px. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Headline.** By word, on arrival.
- **Whisper.** By letter with a small blur.

## Accessibility

- Real text read once; pieces are aria-hidden.

## Motion

- Opacity, filter and transform per piece.
- Reduced motion: shown at once.
