Word Rotate
A vertical rotation of words
Word
import { WordRotate } from '@/registry/magicui/word-rotate'
export function WordRotateDemo() { return ( <WordRotate class=" text-4xl font-bold text-black dark:text-white " words={['Word', 'Rotate']} /> )}Installation
Section titled “Installation”pnpm dlx shadcn@latest add @magicui-solid/word-rotatebunx shadcn@latest add @magicui-solid/word-rotateyarn dlx shadcn@latest add @magicui-solid/word-rotatenpx shadcn@latest add @magicui-solid/word-rotateImport
Section titled “Import”import { WordRotate } from '@/components/magicui/word-rotate'<WordRotate words={['Word', 'Rotate']} />| Prop | Type | Default | Description |
|---|---|---|---|
class |
string |
- |
The class name to be applied to the component |
duration |
number |
2500 |
Duration of the animation |
words |
string[] |
"" |
An array of words to rotate through |
motionProps |
MotionProps |
{} |
An object containing motion animation props |
Original:
magicui.design/docs/components/word-rotate