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

Usage

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

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

API reference

PropTypeDefaultDescription
wordsstring[]requiredShown one at a time, in order.
intervalnumber2400Milliseconds each word stays.
indexnumberShow this word and stop the timer, such as to follow a picker.

View the source on GitHub