word-rotate-default

PreviousNext
Docs
reuicomponent

Preview

Loading preview…
registry/default/components/word-rotate/default.tsx
import { WordRotate } from '@/registry/default/ui/word-rotate';

export default function Component() {
  return (
    <div className="">
      <WordRotate
        words={['Beautiful', 'Performant', 'Animated', 'Customizable', 'Accessible']}
        animationStyle="fade"
        className="text-3xl font-bold bg-gradient-to-r from-blue-600 via-purple-600 to-pink-600 bg-clip-text text-transparent"
        duration={1200}
        pauseDuration={500}
        loop={true}
      />
    </div>
  );
}

Installation

npx shadcn@latest add @reui/word-rotate-default

Usage

import { WordRotateDefault } from "@/components/word-rotate-default"
<WordRotateDefault />