---
title: "Text Domino"
description: "The letters stand like dominoes, tip over one after another when they come into view, then stand back up."
url: https://gelatinui.com/components/text-domino
markdown_url: https://gelatinui.com/components/text-domino.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-domino"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Domino

> The letters stand like dominoes, tip over one after another when they come into view, then stand back up.

Page: https://gelatinui.com/components/text-domino

## When to use it

Best for: A short heading whose letters tip over one after another, then rise back up.

- Use `trigger="hover"` to start the chain on the pointer.
- Use `toppling` to control the chain.

## When not to use it

- For letters that fall and pile up, use [Text Falling](https://gelatinui.com/components/text-falling.md).
- For a heading that enters once, use [Text Split Headline](https://gelatinui.com/components/text-split-headline.md).

## Notes for agents

- `children` must be a string.
- `onSettled` runs when the letters stand again.

## Anatomy

```text
TextDomino
```

## API reference

### TextDomino

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `locale` | `string` |  | The BCP 47 locale for the letter and word split (`Intl.Segmenter`). Default: the `DisplayLocaleProvider` locale, else `"en-US"`. |
| `children` | `string` |  | The text. Up to 40 letters each stand as a domino; a longer text falls by words. |
| `trigger` | `"hover" \| "mount" \| "view"` | "view" | When it falls: `view` (default) once, the first time it shows; `mount` once, at once; `hover` in a loop while a pointer is over it or keyboard focus is on it (or on the link around it). |
| `toppling` | `boolean` |  | True falls and stands in a loop until false, on top of the trigger. The last run finishes. |
| `onSettled` | `function` |  | Called when the letters stand again and the text is plain. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextDomino | `text-domino` |  |  |  |

## Usage

Wrap a short heading.

```tsx title="chain-heading.tsx"
import { TextDomino } from "@/components/pro/text/text-domino";

export function ChainHeading() {
  return (
    <section className="flex flex-col items-center gap-4 py-16 text-center">
      <h1 className="text-6xl font-bold tracking-tight">
        <TextDomino>Chain reaction</TextDomino>
      </h1>
      <p className="text-muted-foreground">Real text inside, so people can still select and copy it.</p>
    </section>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/text-domino
```

It adds 26 registry items: 26 files, 3251 lines, and the npm packages `@mantine/hooks`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `xstate`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Text Falling](https://gelatinui.com/components/text-falling.md)
- [Text Split Headline](https://gelatinui.com/components/text-split-headline.md)
- [Text Typesetter](https://gelatinui.com/components/text-typesetter.md)
