niceui

Marquee

An infinite, edge-faded horizontal scroller for logos, tags or testimonials. Pauses on hover.

ReactTailwind CSSTypeScriptMotionMIT · Free
AccordionDialogTooltipSidebarCommandToastCarouselAccordionDialogTooltipSidebarCommandToastCarousel

Installation

01

Install with the shadcn CLI.

$ npx shadcn@latest add https://niceui.dev/r/marquee.json
02

Or copy the source manually into components/ui/marquee.tsx. No extra dependencies.

Usage

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

const tags = ["Accordion", "Dialog", "Tooltip", "Sidebar", "Command", "Toast"];

export default function Example() {
  return (
    <Marquee>
      {tags.map((tag) => (
        <span key={tag} className="rounded-lg border border-white/15 px-3.5 py-2 text-sm">
          {tag}
        </span>
      ))}
    </Marquee>
  );
}

For AI assistants

This page is also available as Markdown and as a shadcn registry item. Use Copy prompt to hand the full source to Claude, Cursor or v0.