Skip to content

OrigamBracketMatch ​

A single match card — two competitor rows separated by a divider, with an optional status / schedule meta header. Rendered inside OrigamBracket, but exported so you can drop a match card anywhere (e.g. a match-details page) without the full tree.

vue
<OrigamBracketMatch :match="match" />

match is an IBracketMatch: competitorA / competitorB (nullable → "TBD"), optional scoreA / scoreB, winnerId (drives the winner-row highlight), status, and advantage ({ competitorId, rounds } → a +N head-start badge, used for the Grand Final).

Props ​

PropTypeDefault
matchIBracketMatch— (required)
status'pending' | 'live' | 'completed' | 'forfeited'match.status
tostring (URL)— (live only)
isFinalbooleanfalse
showScoresbooleantrue
showSeedbooleanfalse
interactivebooleantrue
colorTIntent | <css-color>'primary'
bgColorTIntent | <css-color>— (surface)
roundedTRounded | number | string | boolean— (6px)
elevationnumber / shadow rung—
border'thin' | 'thick' | number | boolean— (1px)
borderColorTIntent | <css-color>— (subtle)
borderStyle'solid' | 'dashed' | 'dotted' | …'solid'
density'default' | 'compact' | 'comfortable'—
width/height/min/maxnumber | string—
padding* / margin*number | string—
tagstring'div'

The card carries the full cross-cutting surface (color, bgColor, rounded, elevation, border, density, dimension, padding, margin). bgColor paints the card; the text auto-contrasts (black / white) against the painted surface, just like inside OrigamBracket. borderColor accepts an intent and also drives the connector links when the card is in a tree.

status overrides match.status. Each status shows a distinct coloured dot in the meta header: pending a grey static dot, live a red blinking dot (with a ping halo), completed a green dot, forfeited an orange dot. When the match is live and to is set, a red "Watch live ↗" link is rendered (opens the URL in a new tab). On a forfeited match the losing side is struck through and tagged FORFEIT (see OrigamBracketCompetitor.forfeit).

Events ​

EventPayload
click(match, ev: MouseEvent) — fired on the card (not a row)
competitor-click(competitor, match, side: 'A' | 'B', ev)
winner-click(competitor, match, ev) — when the declared winner is clicked
update:active(value: boolean) — v-model companion of the active prop, emitted on every card click via useActive
update:hover(value: boolean) — v-model companion of the hover prop: true on mouseenter, false on mouseleave

Slots ​

SlotScopePurpose
competitor{ competitor, match, isWinner, side }Replace a competitor row

Interaction state ​

hover paints the hover surface; active paints the active surface. A live match IS the active state — status="live" applies the active surface automatically (no need to also pass active). Both hover and active accept a boolean to force the state for previews; live mouse hover is handled by :hover when interactive.

Notes ​

  • The card surface, border (width / style / colour), radius and elevation are inherited from OrigamBracket via CSS custom properties when used inside the tree; standalone, it falls back to the component defaults.
  • Text colour auto-contrasts the surface (see OrigamBracket).