Marquee

An infinitely scrolling Tailwind strip that loops its children horizontally, duplicated for a gapless cycle, and stops when users prefer reduced motion.

src/registry/ui/marquee.tsx/r/marquee.json

Installation#

bash
npx shadcn@latest add @minidev/marquee

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/marquee.json

Usage#

tsx
import { Marquee } from "@/components/ui/marquee"

export function Example() {
  return <Marquee />
}

API reference#

Marquee props
PropTypeDefault
children*React.ReactNode-
classNamestring-

* required

All Animated React components

Learn more