Skip to content

    Browse components

    Word Cycle

    Cycles through a list of words with a vertical slide.

    Ship faster, smoother, bolder

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/word-cycle

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/word-cycle.json

    Usage

    import { WordCycle } from "@/components/ui/word-cycle";
    
    <p>Ship <WordCycle words={["faster", "smoother", "bolder"]} /></p>

    Props

    PropTypeDefaultDescription
    wordsstring[]["faster","smoother","bolder"]Words to cycle through.
    intervalnumber2000Ms each word stays on screen.
    classNamestring—Extra classes for the root element.