Skip to content
synccn

Word Rotate

Cycles words with a vertical slide.

Components that feel fast

Installation

$ pnpm dlx shadcn@latest add @synccn/word-rotate

First 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.

  • wordsrequired
    string[]

    Words to cycle through.

  • interval
    number

    Default 2200

    Milliseconds each word stays.

  • className
    string

    Extra 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

npm packages

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