Data & feedback@neumorphism-ui/marquee

Marquee

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.

@neumorphism-ui/marquee
Registry JSON

Preview

AccessibilityBase UIReact 19Tailwind 4

Installation

Installation: marqueenpx shadcn@latest add @neumorphism-ui/marquee

The CLI resolves npm dependencies, base tokens, utilities, and component source in order.

New to this Registry? Set up the namespace before continuing.

Usage

Import

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

Example

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

API Reference

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.