Componentdata0.57 KB gzipZero dependencies
Match Ticker
Live match ticker with scrolling scores and LIVE badges.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add match-tickerOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { MatchTicker } from "@/components/ui/match-ticker"; <MatchTicker />Source code
match-ticker.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxmatch-ticker.tsx44 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface MatchTickerEntry { id: string; home: string; away: string; homeScore: number; awayScore: number; live?: boolean;} export interface MatchTickerProps extends React.HTMLAttributes<HTMLDivElement> { matches: MatchTickerEntry[];} Props
| Prop | Type | Description |
|---|---|---|
| matches | MatchTickerEntry[] | Configures matches. (Default: []) |