Pro (paid add-on)
Sports and team management
ProReady-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.highlightTeamIdmarks your team (with text, not only color) andplayoffSpotsdraws 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.RosterandPlayerProfile: 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 underminorAge, and full sessions are disabled.TicketPicker: ticket types with prices, tickets left and per-order limits, an order summary with yourfees, andonCheckout.
Example
<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.
| Prop | Type | Default |
|---|---|---|
titleRequiredNames the table (its caption), such as "Metro League standings". | string | — |
teamsRequired | readonly StandingsTeam[] | — |
groupsGroup order. | readonly string[] | the order groups first appear |
columnsColumns shown. | readonly StandingsColumn[] | played, pct, gamesBack, streak, lastTen (and ties when any team has one) |
highlightTeamIdA team to highlight (yours). | string | — |
playoffSpotsTeams above the playoff line in each group; a line is drawn below them. | number | — |
clinchLegendWhat each clinch code means: | Readonly<Record<string, string>> | — |
headingLevelLevel of each group's heading. | 23456 | 3 |
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.
| Prop | Type | Default |
|---|---|---|
teamNameRequiredYour team's name: for "Add to calendar" event titles. | string | — |
gamesRequired | readonly ScheduleGame[] | — |
groupByMonthGroup games under month headings. | boolean | true |
calendarDownloadShows "Add to calendar", which downloads an .ics file of the games. | boolean | true |
headingLevelLevel of the month headings. | 23456 | 3 |
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.
| Prop | Type | Default |
|---|---|---|
awayRequired | GameCardTeam | — |
homeRequired | GameCardTeam | — |
statusRequired | "scheduled""live""final""postponed""canceled" | — |
startStart time, "YYYY-MM-DDTHH:mm", shown before the game. | string | — |
clockLive clock or period ("Q3 4:12"). | string | — |
periodsPoints per period, for a line score under the teams. | readonly { label: string; away: number; home: number; }[] | — |
liveUpdatesAnnounce score changes while live. | boolean | true |
actionsLinks 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.
| Prop | Type | Default |
|---|---|---|
awayRequired | BoxScoreTeam | — |
homeRequired | BoxScoreTeam | — |
statsStat columns for the player tables. Leave empty for only the line score. | readonly BoxScoreStat[] | — |
periodLabelsPeriod headers. | readonly string[] | "1", "2", ... (overtime periods included) |
headingLevelLevel of each team's heading. | 23456 | 3 |
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.
| Prop | Type | Default |
|---|---|---|
titleRequiredNames the roster (the list's label and the table's caption), such as "2026 Varsity roster". | string | — |
playersRequired | readonly RosterPlayer[] | — |
detailsExtra columns, read from each player's | readonly RosterDetail[] | — |
viewThe layout (controlled). | "cards""table" | — |
defaultViewThe initial layout. | "cards""table" | "cards" |
onViewChangeCalled with the new layout. | (view: RosterView) => void | — |
viewSwitchShows the cards / table switch. | boolean | true |
sortOrders players. | ((a: RosterPlayer, b: RosterPlayer) => number) | false | by 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.
| Prop | Type | Default |
|---|---|---|
nameRequired | string | — |
number | string | — |
position | string | — |
photo | string | — |
teamTeam name, shown above the player's name. | ReactNode | — |
factsBio facts ("Height", "6'2\""; "Hometown", "Austin, TX"). | readonly { label: string; value: ReactNode; }[] | — |
statsSeason stat tiles ("PPG", 18.4). | readonly { label: ReactNode; value: ReactNode; }[] | — |
statsTitleHeading over the stat tiles. | string | "Season stats" |
aboutA short bio. | ReactNode | — |
childrenExtra sections (game log, highlights), after the bio. | ReactNode | — |
headingLevelLevel of the player's name heading; sections use the next level. | 12345 | 2 |
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.
| Prop | Type | Default |
|---|---|---|
sessionsRequired | readonly TryoutSession[] | — |
positionsPositions to choose from; leave unset to hide the field. | readonly string[] | — |
minorAgePlayers younger than this register through a parent or guardian. | number | 18 |
waiverHrefThe waiver to agree to; leave unset to hide the waiver checkbox. | string | — |
medicalShows the medical notes field. | boolean | true |
onRegisterRequiredCalled with a valid registration. Return errors by field name (e.g. | (values: TryoutRegistrationValues) => FormErrors | void | Promise<FormErrors | void> | — |
todayToday, "YYYY-MM-DD", for the age check. | string | today |
childrenExtra fields (shirt size, school), placed before the waiver. Give each a | 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.
| Prop | Type | Default |
|---|---|---|
typesRequired | readonly TicketType[] | — |
currencyISO 4217 currency code. | string | "USD" |
feesFees for an order, from its subtotal and ticket count. | (subtotal: number, quantity: number) => number | no fees |
valueQuantities (controlled). | TicketQuantities | — |
defaultValueInitial quantities. | TicketQuantities | — |
onValueChangeCalled with the new quantities. | (value: TicketQuantities) => void | — |
onCheckoutRequiredCalled with the order. While its promise is pending, the button shows a spinner. | (order: TicketOrder) => void | Promise<void> | — |
eventThe event, above the ticket types ("Eagles vs Hawks, Fri Nov 13, 7:00 PM"). | ReactNode | — |
checkoutLabelCheckout button text. | string | "Checkout" |
Also accepts native <div> attributes, plus className, style and ref.
StandingsTeam
One team's record.
| Prop | Type | Default |
|---|---|---|
idRequired | string | — |
nameRequired | string | — |
logoA logo image URL or element. Decorative. | string | ReactNode | — |
winsRequired | number | — |
lossesRequired | number | — |
ties | number | — |
streakCurrent streak: "W3" or "L2" (read as "Won 3", "Lost 2"). | string | — |
lastTenRecord over the last 10 games, such as "7-3". | string | — |
clinchA clinch code ("x", "y", "z", "e"), explained by the table's | string | — |
groupDivision or conference; teams are grouped into a table each. | string | — |
ScheduleGame
One game on a team's schedule.
| Prop | Type | Default |
|---|---|---|
idRequired | string | — |
dateRequired"YYYY-MM-DD", or "YYYY-MM-DDTHH:mm" with a start time (local to the venue). | string | — |
opponentRequired | string | — |
opponentLogoOpponent logo URL or element. Decorative. | string | ReactNode | — |
homeRequiredA home game ("vs") or an away game ("at"). | boolean | — |
venue | string | — |
status | "scheduled""live""final""postponed""canceled" | — |
scoreFinal or live score, your team first. | { us: number; them: number; } | — |
clockLive clock or period ("Q3 4:12"). | string | — |
ticketsHref | string | — |
boxScoreHref | string | — |
tagA small label ("Conference", "Playoffs"). | string | — |
durationLength in minutes, for calendar files. | number | 120 |
GameCardTeam
A team on a game card.
| Prop | Type | Default |
|---|---|---|
nameRequired | string | — |
logo | string | ReactNode | — |
score | number | — |
recordSeason record, such as "12-4". | string | — |
BoxScoreStat
A stat column in the player tables.
| Prop | Type | Default |
|---|---|---|
keyRequiredKey into each player's | string | — |
labelRequiredShort header shown ("PTS"). | string | — |
titleWhat screen readers read for the header ("Points"). | string | label |
totalHow the totals row fills this column: added up, or left blank (for "MIN" or "FG%"). | "sum""none" | "sum" |
BoxScorePlayer
One player's line.
| Prop | Type | Default |
|---|---|---|
idRequired | string | — |
nameRequired | string | — |
numberJersey number. | string | — |
starter | boolean | — |
dnpDidn't play: | boolean | string | — |
statsValues 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.
| Prop | Type | Default |
|---|---|---|
nameRequired | string | — |
logo | string | ReactNode | — |
periodsRequiredPoints per period, in order. Their sum is the team's total. | readonly number[] | — |
players | readonly BoxScorePlayer[] | — |
RosterPlayer
One player on a roster.
| Prop | Type | Default |
|---|---|---|
idRequired | string | — |
nameRequired | string | — |
numberJersey number. | string | — |
position | string | — |
photo | string | — |
hrefLinks the name to the player's profile. | string | — |
detailsExtra values by detail key (height, class year, hometown). | Readonly<Record<string, ReactNode>> | — |
RosterDetail
An extra roster column ("Height", "Year", "Hometown").
| Prop | Type | Default |
|---|---|---|
keyRequired | string | — |
labelRequired | string | — |
TryoutSession
A tryout session players can sign up for.
| Prop | Type | Default |
|---|---|---|
idRequired | string | — |
labelRequired"U14 Boys, Saturday morning". | string | — |
descriptionWhen and where, shown under the label ("Sat, Nov 14 · 9:00 AM · North Gym"). | ReactNode | — |
spotsLeftOpen 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.
| Prop | Type | Default |
|---|---|---|
sessionIdRequired | string | — |
firstNameRequired | string | — |
lastNameRequired | string | — |
birthDateRequired"YYYY-MM-DD". | string | — |
ageRequiredThe player's age on | number | — |
position | string | — |
experience | string | — |
medical | string | — |
emailRequiredThe player's contact, or the guardian's for a minor. | string | — |
phoneRequired | string | — |
guardianName | string | — |
extraRequiredEvery other named field in the form (from | FormValues | — |
TicketType
A kind of ticket ("Adult", "Student", "Family pass").
| Prop | Type | Default |
|---|---|---|
idRequired | string | — |
nameRequired | string | — |
description | ReactNode | — |
priceRequiredPrice per ticket, in | number | — |
remainingTickets left. 0 means sold out; leave unset for no limit. | number | — |
maxPerOrderMost of this type in one order. | number | — |
TicketOrder
What onCheckout receives.
| Prop | Type | Default |
|---|---|---|
itemsRequired | { typeId: string; name: string; quantity: number; price: number; }[] | — |
quantityRequired | number | — |
subtotalRequired | number | — |
feesRequired | number | — |
totalRequired | number | — |