Rotating Words

One word slot that rolls to the next word, resizing to fit.

no dependenciesMIT · free

Build landing pages, portfolios, dashboards, magic

Installation

npx shadcn@latest add https://ombakui.com/r/rotating-words.json

Usage

import { RotatingWords } from "@/components/rotating-words";

<h1>
  Build <RotatingWords words={["landing pages", "portfolios", "dashboards"]} />
</h1>

Props

PropTypeDefaultDescription
words*string[]–Words to cycle through.
asElementType"span"HTML tag to render.
intervalnumber2200Milliseconds each word stays.
classNamestring–