# Redact and Reveal

> Black bars redact a line, then lift to reveal the next.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Transitions |
| Live preview | https://uibrik.com/components/redact-reveal |
| Writes | 1 file into `components/uibrik/redact-reveal/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/redact-reveal.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/redact-reveal`.

Can't run commands? https://uibrik.com/components/redact-reveal/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { RedactReveal } from "@/components/uibrik/redact-reveal/redact-reveal";

const lines = ["The plan is still on", "Meet me after the rain tonight", "Burn this note"];

<RedactReveal
  play={0}
  lines={lines}
  sweep={300}
  stagger={40}
  move={420}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/redact-reveal.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `lines` | `string[]` | `["The plan is still on","Meet me after the rain tonight","Burn this note"]` | Cycled through, one per play. |
| `sweep` | `number` | `300` | Time for one bar to cover or peel. |
| `stagger` | `number` | `40` | Delay between neighbouring bars. |
| `move` | `number` | `420` | Time for bars to travel onto the next line. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `play` (required) | `number` |  | Each change plays the effect again; 0 shows its resting state. |

## Where it fits

- **Security and privacy heroes**: Black bars redacting a line then lifting to reveal the next suits privacy brands.
- **Editorial sites**: A redaction effect fits investigative journalism and reports.
- **Rotating phrases**: Each reveal swaps in the next message with a strong visual cue. Pairs with [Scramble to Word](https://uibrik.com/components/scramble-to-word.md).

## Same shelf: Transitions

- [Rolling Word](https://uibrik.com/components/rolling-word.md): One word rolls to the next like a drum.
- [Scatter Text](https://uibrik.com/components/scatter-text.md): Phrases shatter into particles that regroup into the next phrase.
- [Scramble to Word](https://uibrik.com/components/scramble-to-word.md): A split-flap board scrambles to the next word.
- [Slot-machine Letters](https://uibrik.com/components/slot-letters.md): Each letter spins like a reel and lands on the next word.
- [Status Stamp](https://uibrik.com/components/status-stamp.md): An ink stamp slams down: approved, in review, rejected.
- [Zoom Past](https://uibrik.com/components/zoom-past.md): Words fly toward you and the next one arrives behind.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/redact-reveal/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
