Componentmedia0.4 KB gzipZero dependencies

Marquee

Smooth ticker reel that pauses on hover.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add marquee

Or install the full npm package:

npm install bigbullui

Usage

tsx5 lines
import { Marquee } from "@/components/ui/marquee"; <Marquee speed={25}>  <span>★ ADMIT ONE ★ BIGBULLUI ★</span></Marquee>

Source code

marquee.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxmarquee.tsx55 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface MarqueeProps extends React.HTMLAttributes<HTMLDivElement> {  children: React.ReactNode;  speed?: number; // duration in seconds  direction?: "left" | "right";  pauseOnHover?: boolean;  className?: string;} export function Marquee({  children,  speed = 25,  direction = "left",  pauseOnHover = true,

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { Marquee } from "@/components/ui/marquee"; <Marquee />
PropTypeDescription
childrenReact.ReactNodeChild elements rendered inside the component.
speednumberConfigures speed. (Default: 25)
direction"left" | "right"Configures direction. (Default: "left")
pauseOnHoverbooleanToggles pause on hover. (Default: true)
classNamestringOptional Tailwind or custom CSS classes merged with component styles.