Components › Display
Text rotate
Swaps one word in a sentence on a timer, each new word rising into place.
Installation
npx plankui@latest add text-rotateUsage
import { TextRotate } from "@/components/ui/text-rotate";
A library for <TextRotate words={["dashboards", "AI apps", "dev tools"]} />API reference
| 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. |