Word
Installation
Usage
import { WordRotate } from "@/components/magicui/word-rotate";
<WordRotate words={["Word", "Rotate"]} />
Props
Prop | Type | Default | Description |
---|---|---|---|
className | 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 | HTMLMotionProps | {} | An object containing motion animation props |