terra vidhal

Sports Scoreboard

Component

About

A live game scoreboard with a ticking clock, period handling, two team panels, play-by-play logging for scoring, fouls, timeouts, substitutions and turnovers, possession tracking, animated stats and a final state.

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

Code

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

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { SportsScoreboard } from "@/components/ui/sports-scoreboard";

export default function SportsScoreboardDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
      <SportsScoreboard
        home={{ name: "Tide Rovers", short: "ROV", record: "18 wins · 7 losses" }}
        away={{ name: "Ember Foxes", short: "FOX", record: "16 wins · 9 losses" }}
        initialHomeScore={58}
        initialAwayScore={54}
        initialHomeFouls={4}
        initialAwayFouls={6}
        initialPeriod={3}
        initialClock={272}
        periodSeconds={180}
        totalPeriods={4}
        title="Rovers vs Foxes · Game 26"
        description="A tight third quarter. Run the clock, log the plays, and watch possession and momentum trade hands."
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.