Skip to main content

Installation

    Examples

    Reverse

    Usage

    showLineNumbers
    import { SpinningText } from "@/components/ui/spinning-text"
    
    showLineNumbers
    <SpinningText>learn more • earn more • grow more •</SpinningText>
    

    Props

    PropTypeDefaultDescription
    childrenstring | string[]-The text content to be animated in a circular motion.
    styleCSSProperties{}Custom styles for the text container.
    durationnumber10The duration of the full circular rotation animation.
    classNamestring-A custom class name for the text container.
    reversebooleanfalseDetermines if the animation should rotate in reverse.
    radiusnumber5The radius of the circular path for the text animation.
    transitionTransition-Custom transition effects for the animation.
    variants{ container?: Variants; item?: Variants; }-Variants for container and item animations.

    Credits

    Build docs developers (and LLMs) love