Introducing Magic UI Pro - 50+ blocks and templates to build beautiful landing pages in minutes.

19.0k
208

Marquee

PreviousNext

An infinite scrolling component that can be used to display text, images, or videos.

Installation

pnpm dlx shadcn@latest add @magicui/marquee

Examples

Vertical

3D

Usage

import { Marquee } from "@/components/magicui/marquee";
<Marquee>
  <span>Next.js</span>
  <span>React</span>
  <span>TypeScript</span>
  <span>Tailwind CSS</span>
</Marquee>

Props

PropTypeDefaultDescription
classNamestring-The class name to apply to the component.
reversebooleanfalseWhether or not to reverse the direction of the marquee.
pauseOnHoverbooleanfalseWhether or not to pause the marquee when the user hovers over the component.
verticalbooleanfalseWhether or not to display the marquee vertically.
childrennode-The content to display in the marquee.
repeatnumber4The number of times to repeat the content.