Browse components
Word Cycle
Cycles through a list of words with a vertical slide.
Ship
Installation
npx shadcn@latest add @glint-ui/word-cycleFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| words | string[] | ["faster","smoother","bolder"] | Words to cycle through. |
| interval | number | 2000 | Ms each word stays on screen. |
| className | string | — | Extra classes for the root element. |