Skip to main content

Installation

    Usage

    showLineNumbers
    import { WordRotate } from "@/components/ui/word-rotate"
    
    showLineNumbers
    <WordRotate words={["Word", "Rotate"]} />
    

    Props

    PropTypeDefaultDescription
    classNamestring-The class name to be applied to the component
    durationnumber2500Duration of the animation
    wordsstring[][]An array of words to rotate through
    motionPropsMotionProps{}An object containing motion animation props

    Build docs developers (and LLMs) love