Marquee

Use Marquee for a supplementary repeating strip of short labels or logos that can pause.

Preview

Supported technologies

Display a repeating technology list with localized movement controls.

Loading preview.

Installation

New to this Registry? Complete the base setup before continuing.

npx shadcn@latest add @neumorphism-ui/marquee

Install the shared base once, then add components and their dependencies with the CLI.

Registry JSON

Usage

Pass the items and name the region and its pause and resume controls. Keep essential information available elsewhere and respect the built-in reduced-motion behavior.

"use client";

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

export default function Example() {
  return <Marquee items={["React", "Base UI", "Tailwind CSS"]} label="Supported technologies" />;
}

API Reference

Duplicates the visual item set for continuous movement while hiding the second copy from assistive technology. Users can pause or resume movement, and prefers-reduced-motion stops the animation automatically.

ComponentPropTypeDefaultDescription
Marqueeitemsrequiredreadonly ReactNode[]—The items that repeat through the strip.
Marqueedurationnumber24Sets one animation cycle in seconds.
MarqueedefaultPausedbooleanfalseStarts the component in a paused state.
Marqueelabelstring"Scrolling content"Names the repeating information region.
MarqueepauseLabel / resumeLabelstring—Localizes the accessible names of the motion control button.

Accessibility

  • 01

    The second visual copy is aria-hidden so screen readers do not announce every item twice.

  • 02

    Always provide a user-controlled pause button and expose its state with aria-pressed.

  • 03

    prefers-reduced-motion removes the movement and hides the duplicate item set.