Skip to content
Magic UI SolidMagicUI Solid

Word Rotate

A vertical rotation of words

Word

@/demos/WordRotateDemo.tsx
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']}
/>
)
}
Terminal window
pnpm dlx shadcn@latest add @magicui-solid/word-rotate
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