Skip to content

OrigamBracketCompetitor ​

A single competitor row — optional seed prefix, optional avatar, name, an optional +N advantage badge and a score. Rendered inside OrigamBracketMatch, but exported so you can reuse a row standalone (e.g. inside a custom #match / #competitor slot).

vue
<OrigamBracketCompetitor :competitor="competitor" :score="2" />

competitor is an IBracketCompetitor (id, name, optional seed, optional avatar). null renders a "TBD" placeholder.

Props ​

PropTypeDefault
competitorIBracketCompetitor | null— (required)
scorenumber | string— (—)
bgColorTIntent | <css-color>— (transparent)
colorTIntent | <css-color>— (inherits)
isWinnerbooleanfalse
isLoserbooleanfalse
advantageRoundsnumber— (no badge)
forfeitbooleanfalse
showScorebooleantrue
showSeedbooleanfalse
interactivebooleantrue
roundedTRounded | number | string | boolean—
elevationnumber / shadow rung—
border'thin' | 'thick' | number | string | boolean—
borderColorTIntent | <css-color>— (currentColor)
borderStyle'solid' | 'dashed' | …—
density'default' | 'compact' | 'comfortable'—
width / height / minWidth / maxWidth / minHeight / maxHeightnumber | string—
padding* / margin*number | string—
tagstring'div'

The full cross-cutting surface (rounded, elevation, border, density, dimension, padding, margin) is supported via the standard Commons composables, so a standalone row behaves like any other origam component.

Typography (ITypographyProps) ​

fontSize and fontWeight override the matching font variable on all four text surfaces simultaneously. Each surface reads its own CSS variable so they can also be overridden independently via CSS.

PropTypeApplied to surfaces (CSS var prefix)
fontSizeTFontSizeroot (bracket-competitor), seed (bracket-seed), score (bracket-score), advantage (bracket-advantage)
fontWeightTFontWeightroot (bracket-competitor), seed (bracket-seed), score (bracket-score), advantage (bracket-advantage)

fontFamily, lineHeight, and letterSpacing were removed from IBracketCompetitorProps (issue #501) — no surface read a matching var. fontFamily is a project-level setting configured once on OrigamApp, not a per-instance override.

  • isWinner bolds the row + tints its background; isLoser de-emphasises it (lower opacity). null competitor → italic "TBD".
  • advantageRounds > 0 renders a +N badge next to the name — the Winner Bracket champion's Grand Final head start.

Events ​

EventPayload
click(ev: MouseEvent | KeyboardEvent) — only when interactive
update:active(value: boolean) — v-model companion of the active prop, emitted on every click via useActive
update:hover(value: boolean) — v-model companion of the hover prop: true on mouseenter, false on mouseleave

Notes ​

  • Name, score, seed and the winner/loser/TBD states all derive from currentColor, so the row stays legible on whatever surface its parent match is painted (auto-contrast — see OrigamBracket).
  • bgColor paints the row and color sets its text (standalone use). Left unset inside a bracket, the row stays transparent and inherits the bracket's auto-contrast colour — so the match surface stays in control.