# Slot-machine Letters

> Each letter spins like a reel and lands on the next word.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Transitions |
| Live preview | https://uibrik.com/components/slot-letters |
| Writes | 1 file into `components/uibrik/slot-letters/` |
| 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/slot-letters.json
```

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

Can't run commands? https://uibrik.com/components/slot-letters/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 { SlotLetters } from "@/components/uibrik/slot-letters/slot-letters";

<SlotLetters
  play={0}
  words={["ROUND", "ABOUT", "TURNS", "AGAIN"]}
  duration={0.5}
  stagger={0.05}
/>
```

## Tune it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `words` | `string[]` | `["ROUND","ABOUT","TURNS","AGAIN"]` | Uppercase A–Z words, cycled one per play. |
| `duration` | `number` | `0.5` | Time for a reel to stop. |
| `stagger` | `number` | `0.05` | Delay between reels. |

## 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

- **Rotating headlines**: Each letter spinning like a reel to land on the next word adds suspense. Pairs with [Scramble to Word](https://uibrik.com/components/scramble-to-word.md).
- **Casino and game themes**: Slot-machine letters fit games, prizes and lotteries.
- **Reveals and countdowns**: Landing on a word works for announcing a winner or launch name.

## Same shelf: Transitions

- [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.
- [Anagram Shuffle](https://uibrik.com/components/anagram-shuffle.md): Letters rearrange themselves into the next anagram.
- [Crumble to Sand](https://uibrik.com/components/crumble-to-sand.md) (Pro): The phrase crumbles into grains that rebuild the next one.
- [Particle Scatter](https://uibrik.com/components/particle-scatter.md): Each press breaks the phrase into particles that regroup.
- [Redact and Reveal](https://uibrik.com/components/redact-reveal.md): Black bars redact a line, then lift to reveal the next.

## Ground rules

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