---
title: "Text Cut Rotate"
description: "The word changes with a hard cut: the old one goes at once, and the new letters show one by one with no fade."
url: https://gelatinui.com/components/text-cut-rotate
markdown_url: https://gelatinui.com/components/text-cut-rotate.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-cut-rotate"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Cut Rotate

> The word changes with a hard cut: the old one goes at once, and the new letters show one by one with no fade.

Page: https://gelatinui.com/components/text-cut-rotate

## When to use it

Best for: One word or short phrase that changes in turn inside a heading, with no layout shift around it.

- Set `reserveWidth` when text after the word must stay still; leave it off to let the width glide to each new word.
- Control `index` with `onIndexChange` when another part of the page follows the shown text.

## When not to use it

- For the same effect with another look, use [Text Roll Rotate](https://gelatinui.com/components/text-roll-rotate.md).
- For text that types and erases letter by letter, use [Text Typewriter](https://gelatinui.com/components/text-typewriter.md).

## Notes for agents

- Cut Text Rotate owns its look: it builds on Text Rotate and takes every other Text Rotate prop and part.
- `texts` needs two or more strings to turn. One text shows still, and no timer runs.
- `interval` is seconds per text (default 2.5). 0 or less holds the current text.
- The turn stops off screen, in a hidden tab, while a mouse is over it, and while the link or button around it has keyboard focus (`pauseOnHover`).
- A long text turns by word, a short one by letter. Emoji and accented letters stay whole.

## Anatomy

```text
TextCutRotate
```

## API reference

### TextCutRotate

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `paused` | `boolean` |  | The pause of the user or the page (controlled). |
| `defaultPaused` | `boolean` |  | The first pause when `paused` is not given (uncontrolled). Default false. |
| `onPausedChange` | `function` |  | Called when the pause changes. |
| `pauseOnHover` | `boolean` |  | Hold the motion while a mouse is over the item, or keyboard focus is on the link or button around it (or in it). Default true. |
| `locale` | `string` |  | The BCP 47 locale for the letter and word split (`Intl.Segmenter`). Default: the `DisplayLocaleProvider` locale, else `"en-US"`. |
| `texts` | `readonly string[]` |  | The texts to show in turn, at least two. |
| `interval` | `number` |  | Seconds each text stays. Default 2.5. 0 or less holds the current text. |
| `reserveWidth` | `boolean` |  | Keep the width of the widest text, so the text after it never moves. Default false: the width slides to each new text. |
| `index` | `number` |  | The index of the text that shows (controlled). Each turn calls `onIndexChange`. |
| `defaultIndex` | `number` |  | The index of the text that shows first (uncontrolled). Default 0. |
| `onIndexChange` | `function` |  | Called with the index of each new text. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextCutRotate | `text-cut-rotate` |  |  |  |

## Usage

Put it inside a heading and give it the words: it shows each one in turn.

```tsx title="hero-heading.tsx"
import { TextCutRotate } from "@/components/pro/text/text-cut-rotate";

export function HeroHeading() {
  return (
    <section className="flex flex-col items-center gap-3 text-center">
      <h1 className="text-5xl font-semibold tracking-tight">
        Ship{" "}
        <TextCutRotate
          texts={["faster", "safer", "together"]}
          interval={2.5}
          className="text-primary"
        />
      </h1>
      <p className="text-muted-foreground">
        One kit for every screen your team builds.
      </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-cut-rotate
```

It adds 36 registry items: 35 files, 5474 lines, and the npm packages `@base-ui/react`, `@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 Roll Rotate](https://gelatinui.com/components/text-roll-rotate.md)
- [Text Flip Rotate](https://gelatinui.com/components/text-flip-rotate.md)
- [Text Typewriter](https://gelatinui.com/components/text-typewriter.md)
- [Typography](https://gelatinui.com/components/typography.md)

## Motion

| Part | Motion |
| --- | --- |
| Roll | reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · old letters roll up out of the line, new ones roll in from below, 20ms apart |
| Flip | reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · each letter turns up like the face of a cube |
| Slide | reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · the text moves 0.6em to the start side, the new one comes from the end side |
| Zoom | reveal · 400ms · ease-panel (0.2, 0.4, 0.2, 1) · the new text grows from 90% with a short blur |
| Fade | fade-exit · 90ms · ease-out (0, 0, 0.2, 1) · the old text fades, then the new one fades in over 400ms |
| Cut | instant · the new words show one by one, 80ms apart, with no fade |
| Width | panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1) · the box glides to the width of the new text |
