Skip to content
Vertical Jump Designs-uiFront-End Studio
Get Pro

v3.9 is out.

Pro (paid add-on)

Sports and team management

Pro

Ready-made components for leagues, clubs and school teams: standings, game schedules and cards, box scores, rosters and player profiles, tryout sign-ups and ticket sales.

Part of Pro

This page documents part of @vjdesigns-pro/ui, the paid add-on package. Using it needs a Pro license and @vjdesigns/vjdesigns-ui 3.8.0 or later. Like the free package, it works in both modes, every brand, all 32 languages and right to left. Install it as described in Account forms.

The components

For leagues, clubs and school teams. Every built-in word ("W", "Games back", "Did not play", "Spots left") is translated in all 32 languages, and short headers are read in full by screen readers.

  • StandingsTable: pass wins, losses and ties; it sorts each division, ranks, and works out games played, winning percentage and games back. highlightTeamId marks your team (with text, not only color) and playoffSpots draws the playoff line.
  • GameSchedule: a season by month with results ("W 72–65", read as "Win, 72 to 65"), Live, Postponed and Canceled, and ticket and box-score links. Add to calendar downloads an .ics file.
  • GameCard: a scoreboard card, final, live (score changes are announced) or upcoming.
  • BoxScore: the line score plus a table per team, with starters, bench, totals, and players who didn't play. Define the stat columns for any sport.
  • Roster and PlayerProfile: player cards or a table sorted by jersey number, and a player page with facts, season stats and a bio.
  • TryoutRegistration: a sign-up form. A parent or guardian section appears for players under minorAge, and full sessions are disabled.
  • TicketPicker: ticket types with prices, tickets left and per-order limits, an order summary with your fees, and onCheckout.

Example

tsx
<StandingsTable title="Metro League standings" teams={teams} highlightTeamId="eagles"
  playoffSpots={4} clinchLegend={{ x: "Clinched playoff spot" }} />
<GameSchedule teamName="Ridge Eagles" games={games} />
<BoxScore away={hawks} home={eagles} stats={[
  { key: "pts", label: "PTS", title: "Points" },
  { key: "reb", label: "REB", title: "Rebounds" },
]} />
<TryoutRegistration sessions={sessions} positions={["Guard", "Forward", "Center"]}
  waiverHref="/waiver" onRegister={register} />
<TicketPicker types={ticketTypes} fees={(subtotal, count) => count * 0.5} onCheckout={startCheckout} />

Props

StandingsTable

League standings: rank, team, wins, losses, and (computed for you) games played, winning percentage, and games back, plus streak and last ten. Teams sort by percentage, then wins, in each group (division).

Accessibility: a real table per group, captioned with the title and group. Short headers (W, L, PCT, GB) are read in full ("Wins", "Games back"); streaks are read as "Won 3". Your team is marked with text, not only color, and the first team below the playoff line says so. Clinch codes are read with their meaning, and listed in a legend.

StandingsTable props
PropTypeDefault
titleRequired

Names the table (its caption), such as "Metro League standings".

string—
teamsRequiredreadonly StandingsTeam[]—
groups

Group order.

readonly string[]the order groups first appear
columns

Columns shown.

readonly StandingsColumn[]played, pct, gamesBack, streak, lastTen (and ties when any team has one)
highlightTeamId

A team to highlight (yours).

string—
playoffSpots

Teams above the playoff line in each group; a line is drawn below them.

number—
clinchLegend

What each clinch code means: { x: "Clinched playoff spot" }. Shown as a legend.

Readonly<Record<string, string>>—
headingLevel

Level of each group's heading.

234563

Also accepts native <div> attributes, plus className, style and ref.

GameSchedule

A team's season: games by month, each with its date and time, "vs" or "at" the opponent, the venue, a result ("W 72–65") or status (Live, Postponed, Canceled), and links to tickets and the box score. "Add to calendar" downloads the games as an .ics file families can import.

Accessibility: a list per month under a heading; each game is a list item whose result is read in full ("Win, 72 to 65"); statuses are text.

GameSchedule props
PropTypeDefault
teamNameRequired

Your team's name: for "Add to calendar" event titles.

string—
gamesRequiredreadonly ScheduleGame[]—
groupByMonth

Group games under month headings.

booleantrue
calendarDownload

Shows "Add to calendar", which downloads an .ics file of the games.

booleantrue
headingLevel

Level of the month headings.

234563

Also accepts native <div> attributes, plus className, style and ref.

GameCard

A scoreboard card: away and home teams with logos, records, and scores, the status (start time, live clock, Final), an optional line score, and actions. The winner is bold and read as "Winner"; while live, score changes are announced politely.

GameCard props
PropTypeDefault
awayRequiredGameCardTeam—
homeRequiredGameCardTeam—
statusRequired"scheduled""live""final""postponed""canceled"—
start

Start time, "YYYY-MM-DDTHH:mm", shown before the game.

string—
clock

Live clock or period ("Q3 4:12").

string—
periods

Points per period, for a line score under the teams.

readonly { label: string; away: number; home: number; }[]—
liveUpdates

Announce score changes while live.

booleantrue
actions

Links or buttons (box score, tickets).

ReactNode—

Also accepts native <article> attributes, plus className, style and ref.

BoxScore

A game's box score: the line score (points per period and the final), then a table per team of starters, bench, and totals, with the stat columns you define (PTS, REB, AST for basketball; AB, R, H for baseball).

Accessibility: real tables with captions; short headers are read in full through title; starters and bench are row groups with their own header; players are row headers; totals are in the table footer. DNP lines say so in text, with the reason.

BoxScore props
PropTypeDefault
awayRequiredBoxScoreTeam—
homeRequiredBoxScoreTeam—
stats

Stat columns for the player tables. Leave empty for only the line score.

readonly BoxScoreStat[]—
periodLabels

Period headers.

readonly string[]"1", "2", ... (overtime periods included)
headingLevel

Level of each team's heading.

234563

Also accepts native <div> attributes, plus className, style and ref.

Roster

A team roster: player cards (photo, number, name, position, details) or a sortable-by-number table, with a switch between the two.

Accessibility: cards are a labeled list, each card a list item whose name may link to the profile; the jersey number is read as "Number 23". The table has a caption and players as row headers.

Roster props
PropTypeDefault
titleRequired

Names the roster (the list's label and the table's caption), such as "2026 Varsity roster".

string—
playersRequiredreadonly RosterPlayer[]—
details

Extra columns, read from each player's details.

readonly RosterDetail[]—
view

The layout (controlled).

"cards""table"—
defaultView

The initial layout.

"cards""table""cards"
onViewChange

Called with the new layout.

(view: RosterView) => void—
viewSwitch

Shows the cards / table switch.

booleantrue
sort

Orders players.

((a: RosterPlayer, b: RosterPlayer) => number) | falseby jersey number, then name

Also accepts native <div> attributes, plus className, style and ref.

PlayerProfile

A player's page: a header with photo, number, name, position, and team, bio facts, season stat tiles, and an "About" section, plus any sections you add (a game log DataGrid, a highlights Carousel).

Accessibility: an article named by the player's heading; the number is read as "Number 23"; facts and stats are description lists.

PlayerProfile props
PropTypeDefault
nameRequiredstring—
numberstring—
positionstring—
photostring—
team

Team name, shown above the player's name.

ReactNode—
facts

Bio facts ("Height", "6'2\""; "Hometown", "Austin, TX").

readonly { label: string; value: ReactNode; }[]—
stats

Season stat tiles ("PPG", 18.4).

readonly { label: ReactNode; value: ReactNode; }[]—
statsTitle

Heading over the stat tiles.

string"Season stats"
about

A short bio.

ReactNode—
children

Extra sections (game log, highlights), after the bio.

ReactNode—
headingLevel

Level of the player's name heading; sections use the next level.

123452

Also accepts native <article> attributes, plus className, style and ref.

TryoutRegistration

A tryout sign-up form: the player's name, date of birth, position, and experience; a parent or guardian section that appears when the player is a minor (their contact replaces the player's); session cards with spots left (full sessions are disabled); medical notes; and the waiver.

Built on useFormValidation: errors are listed in an ErrorSummary and on their fields, focus moves to the summary on a failed submit, and errors you return from onRegister (a session that just filled up) show the same way. A successful registration is confirmed in a status alert, which takes focus.

TryoutRegistration props
PropTypeDefault
sessionsRequiredreadonly TryoutSession[]—
positions

Positions to choose from; leave unset to hide the field.

readonly string[]—
minorAge

Players younger than this register through a parent or guardian.

number18
waiverHref

The waiver to agree to; leave unset to hide the waiver checkbox.

string—
medical

Shows the medical notes field.

booleantrue
onRegisterRequired

Called with a valid registration. Return errors by field name (e.g. { sessionId: "Just filled up" }) to show them.

(values: TryoutRegistrationValues) => FormErrors | void | Promise<FormErrors | void>—
today

Today, "YYYY-MM-DD", for the age check.

stringtoday
children

Extra fields (shirt size, school), placed before the waiver. Give each a name; values arrive in extra.

ReactNode—

Also accepts native <form> attributes, plus className, style and ref.

TicketPicker

Ticket selection for a game or event: each ticket type with its price, tickets left, and per-order limit, and a quantity stepper; an order summary with subtotal, fees, and total; and checkout.

Accessibility: each quantity is a spin button named "Quantity of Adult"; sold-out types say so in text; the total is a polite live region, so it is read as quantities change; checking out with no tickets explains why in an alert.

TicketPicker props
PropTypeDefault
typesRequiredreadonly TicketType[]—
currency

ISO 4217 currency code.

string"USD"
fees

Fees for an order, from its subtotal and ticket count.

(subtotal: number, quantity: number) => numberno fees
value

Quantities (controlled).

TicketQuantities—
defaultValue

Initial quantities.

TicketQuantities—
onValueChange

Called with the new quantities.

(value: TicketQuantities) => void—
onCheckoutRequired

Called with the order. While its promise is pending, the button shows a spinner.

(order: TicketOrder) => void | Promise<void>—
event

The event, above the ticket types ("Eagles vs Hawks, Fri Nov 13, 7:00 PM").

ReactNode—
checkoutLabel

Checkout button text.

string"Checkout"

Also accepts native <div> attributes, plus className, style and ref.

StandingsTeam

One team's record.

StandingsTeam props
PropTypeDefault
idRequiredstring—
nameRequiredstring—
logo

A logo image URL or element. Decorative.

string | ReactNode—
winsRequirednumber—
lossesRequirednumber—
tiesnumber—
streak

Current streak: "W3" or "L2" (read as "Won 3", "Lost 2").

string—
lastTen

Record over the last 10 games, such as "7-3".

string—
clinch

A clinch code ("x", "y", "z", "e"), explained by the table's clinchLegend.

string—
group

Division or conference; teams are grouped into a table each.

string—

ScheduleGame

One game on a team's schedule.

ScheduleGame props
PropTypeDefault
idRequiredstring—
dateRequired

"YYYY-MM-DD", or "YYYY-MM-DDTHH:mm" with a start time (local to the venue).

string—
opponentRequiredstring—
opponentLogo

Opponent logo URL or element. Decorative.

string | ReactNode—
homeRequired

A home game ("vs") or an away game ("at").

boolean—
venuestring—
status"scheduled""live""final""postponed""canceled"—
score

Final or live score, your team first.

{ us: number; them: number; }—
clock

Live clock or period ("Q3 4:12").

string—
ticketsHrefstring—
boxScoreHrefstring—
tag

A small label ("Conference", "Playoffs").

string—
duration

Length in minutes, for calendar files.

number120

GameCardTeam

A team on a game card.

GameCardTeam props
PropTypeDefault
nameRequiredstring—
logostring | ReactNode—
scorenumber—
record

Season record, such as "12-4".

string—

BoxScoreStat

A stat column in the player tables.

BoxScoreStat props
PropTypeDefault
keyRequired

Key into each player's stats.

string—
labelRequired

Short header shown ("PTS").

string—
title

What screen readers read for the header ("Points").

stringlabel
total

How the totals row fills this column: added up, or left blank (for "MIN" or "FG%").

"sum""none""sum"

BoxScorePlayer

One player's line.

BoxScorePlayer props
PropTypeDefault
idRequiredstring—
nameRequiredstring—
number

Jersey number.

string—
starterboolean—
dnp

Didn't play: true, or a reason ("Coach's decision", "Injured").

boolean | string—
stats

Values by stat key. Numbers are formatted for the locale; strings ("5-11") are shown as is.

Readonly<Record<string, number | string>>—

BoxScoreTeam

One team's side of the box score.

BoxScoreTeam props
PropTypeDefault
nameRequiredstring—
logostring | ReactNode—
periodsRequired

Points per period, in order. Their sum is the team's total.

readonly number[]—
playersreadonly BoxScorePlayer[]—

RosterPlayer

One player on a roster.

RosterPlayer props
PropTypeDefault
idRequiredstring—
nameRequiredstring—
number

Jersey number.

string—
positionstring—
photostring—
href

Links the name to the player's profile.

string—
details

Extra values by detail key (height, class year, hometown).

Readonly<Record<string, ReactNode>>—

RosterDetail

An extra roster column ("Height", "Year", "Hometown").

RosterDetail props
PropTypeDefault
keyRequiredstring—
labelRequiredstring—

TryoutSession

A tryout session players can sign up for.

TryoutSession props
PropTypeDefault
idRequiredstring—
labelRequired

"U14 Boys, Saturday morning".

string—
description

When and where, shown under the label ("Sat, Nov 14 · 9:00 AM · North Gym").

ReactNode—
spotsLeft

Open spots. 0 means full (the option is disabled); leave unset to hide the count.

number—

TryoutRegistrationValues

What onRegister receives. Guardian fields are only set for minors.

TryoutRegistrationValues props
PropTypeDefault
sessionIdRequiredstring—
firstNameRequiredstring—
lastNameRequiredstring—
birthDateRequired

"YYYY-MM-DD".

string—
ageRequired

The player's age on today.

number—
positionstring—
experiencestring—
medicalstring—
emailRequired

The player's contact, or the guardian's for a minor.

string—
phoneRequiredstring—
guardianNamestring—
extraRequired

Every other named field in the form (from children).

FormValues—

TicketType

A kind of ticket ("Adult", "Student", "Family pass").

TicketType props
PropTypeDefault
idRequiredstring—
nameRequiredstring—
descriptionReactNode—
priceRequired

Price per ticket, in currency. 0 shows "Free".

number—
remaining

Tickets left. 0 means sold out; leave unset for no limit.

number—
maxPerOrder

Most of this type in one order.

number—

TicketOrder

What onCheckout receives.

TicketOrder props
PropTypeDefault
itemsRequired{ typeId: string; name: string; quantity: number; price: number; }[]—
quantityRequirednumber—
subtotalRequirednumber—
feesRequirednumber—
totalRequirednumber—