Component referenceSource owned

Marquee

A scrolling text component that animates horizontally.

On this page2 sectionsBack to top
Live preview
Loading preview...

#Installation

The CLI installation includes the animation tokens and keyframes automatically.

npx shadcn@latest add https://neobrutal-ui.andongmin.com/r/marquee.json

Make sure there is enough content in items so it loops perfectly.

Visit this article to learn more.

#Usage

import Marquee from "@/components/ui/marquee";
const items = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"];
<Marquee items={items} />