Skip to main content
ParticleUI

Word Rotate

Cycles through an array of words with a fade + slide animation. Supports static prefix and suffix text.

Build beautiful

Works with React out of the box

Installation

1

Run the CLI

$npx particleui-cli add word-rotate

Usage

TSX
import { WordRotate } from "@/components/ui/word-rotate"

export default function Example() {
  return (
    <h1 className="text-4xl font-bold">
      <WordRotate
        staticPrefix="Build "
        words={["beautiful", "accessible", "fast"]}
      />
      {" UIs"}
    </h1>
  )
}

Props

PropTypeDefaultRequired
wordsstring[]yes
intervalnumber2500no
classNamestringno
staticPrefixstringno
staticSuffixstringno

Details

Source filecomponents/ui/word-rotate.tsx
Typeui
Categoriestext, particles
npm dependencies
Registry deps
Claude skill