# Text rotate

Swaps one word in a sentence on a timer, each new word rising into place. PlankUI component for React 19 and Tailwind CSS v4. Category: Display.

## Install

```bash
npx plankui@latest add text-rotate
```

## Usage

```tsx
import { TextRotate } from "@/components/ui/text-rotate";

A library for <TextRotate words={["dashboards", "AI apps", "dev tools"]} />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| words | `string[]` | `required` | Shown one at a time, in order. |
| interval | `number` | `2400` | Milliseconds each word stays. |
| index | `number` |  | Show this word and stop the timer, such as to follow a picker. |

Source: https://github.com/VectorLabsHQ/plankui/blob/main/components/ui/text-rotate.tsx
