Skip to main content
Clever Ops

Ticker Tape Marquee

Thin financial-style tape scrolling mono label-value pairs on pure CSS, signed deltas carry direction glyphs in the primary/destructive token pair, framed by hairlines.

Preview & code

Loading Ticker Tape Marquee preview

Installation

pnpm dlx shadcn@latest add @cleverui/marquee-ticker-tape

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { MarqueeTickerTape } from '@/components/blocks/marquee-ticker-tape'
Exampletsx
import { MarqueeTickerTape } from '@/components/blocks/marquee-ticker-tape'

const items = [
  { label: 'NVDA', value: '$128.40', delta: 2.4 },
  { label: 'AAPL', value: '$214.18', delta: -0.6 },
  { label: 'MSFT', value: '$428.90', delta: 1.1 },
  { label: 'AMZN', value: '$186.52', delta: 0.8 },
  { label: 'META', value: '$512.33', delta: -1.3 },
  { label: 'GOOG', value: '$178.05', delta: 0.4 },
  { label: 'TSLA', value: '$248.70', delta: 3.2 },
  { label: 'AVGO', value: '$1,642.10', delta: -0.9 },
  { label: 'SPX', value: '5,842.16', delta: 0.5 },
  { label: 'NDX', value: '20,418.84', delta: 0.7 },
]

export default function MarqueeTickerTapeDemo() {
  return (
    <div className="flex min-h-[300px] flex-col justify-center gap-8 px-0">
      <div className="mx-auto max-w-6xl px-4 sm:px-6">
        <p className="font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground sm:text-xs">
          Market open
        </p>
        <h2 className="mt-2 text-2xl font-semibold tracking-tight text-balance sm:text-3xl">
          Live tape from the desks we wire up.
        </h2>
      </div>
      <MarqueeTickerTape items={items} label="Live index" duration={30} />
    </div>
  )
}

API reference

MarqueeTickerTape accepts the following props.

PropTypeDefaultDescription
items*MarqueeTickerTapeItem[]
durationnumber30seconds for one full loop
separatorstring'·'glyph rendered between pairs in border-tone
labelstring'Live index'sr-only landmark label describing the tape

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface MarqueeTickerTapeItem {
  label: string
  /** preformatted value, e.g. '$48.12' */
  value: string
  /** signed percent; sign picks glyph and primary/destructive token */
  delta?: number
}

Frequently asked questions

How do I install the Ticker Tape Marquee component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/marquee-ticker-tape`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Ticker Tape Marquee require?

Ticker Tape Marquee has no npm dependencies beyond React and Tailwind CSS itself, so there is nothing extra to install or keep updated.

Can I theme Ticker Tape Marquee to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services