Components that feel fast
Installation
$ pnpm dlx shadcn@latest add @synccn/word-rotateFirst time in this project? Connect synccn with one command.
Usage
import { WordRotate } from "@/components/ui/shimmer-text";<WordRotate words={["fast", "yours"]} />API reference
Generated from the component's TypeScript types, so it always matches the code.
WordRotate
Cycles through words with a vertical slide.
PropTypeDescription
- wordsrequired
string[]Words to cycle through.
- interval
numberDefault
2200Milliseconds each word stays.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-hidden, aria-label
More motion
MarqueeEndless scrolling row or column that pauses on hover.Number TickerCounts up to a number when it scrolls into view.TypewriterTypes and deletes a list of phrases.Shimmer TextA light sweep across text for loading moments.Text ScrambleCharacters scramble and resolve left to right.Border BeamA light that travels around a card's border.