Malay Patel

Marquee

Component 14

About

An endless, seamless row of logos, quotes or tags that slows on hover and fades out at the edges. Free component from uibrik (uibrik.com).

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Marquee to your project and fits it to your theme.

Code

How Marquee is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { Marquee } from "@/components/ui/marquee";
import { IconBolt, IconCircleDashed, IconCube, IconHexagon, IconInfinity, IconLeaf, IconPrism, IconSquareRotated } from "@tabler/icons-react";

const BRANDS = [
  { name: "Northwind", icon: IconLeaf },
  { name: "Lumen", icon: IconPrism },
  { name: "Quanta", icon: IconCube },
  { name: "Halcyon", icon: IconCircleDashed },
  { name: "Vertex", icon: IconSquareRotated },
  { name: "Ampere", icon: IconBolt },
  { name: "Hexwise", icon: IconHexagon },
  { name: "Loop", icon: IconInfinity },
];

const props = {
  direction: "left" as "left" | "right" | "up" | "down",
  speed: 40,
  onHover: "slow" as "slow" | "pause" | "none",
  hoverSpeed: 0.25,
  draggable: false,
  gap: 40,
  fadeEdges: "both" as "both" | "start" | "end" | "none",
  fade: 64,
};

export default function Demo() {
  const vertical = props.direction === "up" || props.direction === "down";
  return (
    <div className="flex h-screen w-full items-center justify-center px-4">
      <Marquee {...props} className={vertical ? "h-80 w-56" : "w-full max-w-3xl"}>
        {BRANDS.map(({ name, icon: Icon }) => (
          <span key={name} className="flex items-center gap-2 text-lg font-medium tracking-tight text-muted-foreground">
            <Icon size={22} stroke={1.75} aria-hidden />
            {name}
          </span>
        ))}
      </Marquee>
    </div>
  );
}

Dependencies

More by Malay Patel

View all
  • Halftone

    Halftone

    56
  • Balloon Button

    Balloon Button

    44
  • Fold Toolbar

    Fold Toolbar

    36
  • Hold To Confirm

    Hold To Confirm

    22
  • Otp Input

    Otp Input

    17
  • Aurora

    Aurora

    11
  • Segmented Control

    Segmented Control

    9
  • Testimonial Carousel

    Testimonial Carousel

    6