BracketMatch

Data Display
stable

A single match card inside a tournament bracket, showing two competitor rows with optional meta header (status, schedule, watch link) and score columns.

Structure

Anatomy

Visual breakdown of the component's internal structure with BEM class call-outs.

Anatomy of OrigamBracketMatchSchematic of the BracketMatch card with 5 numbered parts. LIVE 14:00 UTC Watch live ↗ Team Alpha 3 Team Beta 1 1 2 3 4 5
Anatomy of <origam-bracket-match> — 5 parts: root card, meta header, body, competitor rows (A / B) and divider.
1.origam-bracket-match
Root card element. Flex column with border, rounded corners and optional box-shadow. role="group".
2.origam-bracket-match__meta
Meta header bar. Visible only when match.scheduledAt or a resolved status is present. Contains status badge, watch link and schedule time.
3.origam-bracket-match__row (side A)
Competitor A row — an OrigamBracketCompetitor with isWinner/isLoser derived from match.winnerId.
4.origam-bracket-match__row (side B)
Competitor B row — same as A but for the second participant.
5.origam-bracket-match__divider
OrigamDivider separator between the two competitor rows.

API

Props

All props accepted by this component, with their type, default value and description.

match
required
IBracketMatch
Match payload containing competitorA, competitorB, scoreA, scoreB, winnerId, status, scheduledAt and advantage data.
status
TBracketMatchStatus
Overrides match.status. Accepted values: "pending", "live", "completed", "forfeited".
to
string
URL for the "Watch live" link shown when status is "live".
isFinal
boolean
false
When true applies the --final visual treatment (elevated shadow, larger card, rounded corners).
showScores
boolean
true
Forwarded to OrigamBracketCompetitor to toggle the score column.
showSeed
boolean
false
Forwarded to OrigamBracketCompetitor to toggle the seed prefix.
interactive
boolean
true
When true the card and its competitor rows advertise interactivity (hover, cursor, role="button").
id
string
class
string | Array<string> | object
style
string | Array<string> | object | StyleValue
tag
string
'div'
HTML element rendered as the match card root.
color
'primary'
Intent color forwarded to competitor rows. Drives the winner tint and the auto-contrast text color.
bgColor
Background color of the match card.
hover
boolean | IStateEffectConfig
hoverClass
string
active
boolean | IStateEffectConfig
activeClass
string
Border-radius override for the match card.
roundedTopRight
boolean | number | string
roundedTopLeft
boolean | number | string
roundedBottomLeft
boolean | number | string
roundedBottomRight
boolean | number | string
roundedStartStart
boolean | number | string
roundedStartEnd
boolean | number | string
roundedEndStart
boolean | number | string
roundedEndEnd
boolean | number | string
elevation
TElevation
Box-shadow elevation override for the match card.
border
boolean | number | string | TDirectionBoth | Array<TDirectionBoth>
borderColor
string
borderTop
boolean | number | string
borderLeft
boolean | number | string
borderBottom
boolean | number | string
borderRight
boolean | number | string
borderBlock
boolean | number | string
borderInline
boolean | number | string
borderBlockStart
boolean | number | string
borderBlockEnd
boolean | number | string
borderStyle
string
borderTopColor
TColor
borderRightColor
TColor
borderBottomColor
TColor
borderLeftColor
TColor
borderBlockStartColor
TColor
borderBlockEndColor
TColor
density
Controls card and competitor row padding. compact: 56px min-height, comfortable: 88px.
height
number | string
maxHeight
number | string
maxWidth
number | string
minHeight
number | string
minWidth
number | string
width
number | string
padding
boolean | number | string
paddingTop
boolean | number | string
paddingLeft
boolean | number | string
paddingBottom
boolean | number | string
paddingRight
boolean | number | string
paddingBlock
boolean | number | string
paddingInline
boolean | number | string
paddingInlineStart
boolean | number | string
paddingInlineEnd
boolean | number | string
paddingBlockStart
boolean | number | string
paddingBlockEnd
boolean | number | string
margin
boolean | number | string
marginTop
boolean | number | string
marginLeft
boolean | number | string
marginBottom
boolean | number | string
marginRight
boolean | number | string
marginBlock
boolean | number | string
marginInline
boolean | number | string
marginInlineStart
boolean | number | string
marginInlineEnd
boolean | number | string
marginBlockStart
boolean | number | string
marginBlockEnd
boolean | number | string

API

Slots

Content slots exposed by this component.

#competitor
Override the rendering of each competitor row. Used twice (side A and B). Receives competitor data, the match, winner flag and side identifier.

API

Emits

Events emitted by this component.

@click
IBracketMatch, MouseEvent
Fired on card click (not inside a competitor row). Receives the match payload and the native event.
@competitor-click
IBracketCompetitor, IBracketMatch, 'A' | 'B', MouseEvent | KeyboardEvent
Fired when a competitor row is clicked. Receives the competitor, match, side ("A" or "B") and the event.
@winner-click
IBracketCompetitor, IBracketMatch, MouseEvent | KeyboardEvent
Fired additionally when the clicked competitor is the winner of the match.
@update:active
any
@update:hover
boolean

API

Exposed members

Properties and methods accessible via template ref (defineExpose). Use them for programmatic control.

<T extends object>(props: T, exclude?: string[]) => Partial<T>
Utility to forward a filtered subset of props to a child component.

Customisation

CSS variables

CSS custom properties exposed by this component. Override them to customise the component without losing theme compatibility.

Default width of the match card.
Minimum card height. compact: 56px, comfortable: 88px.
Card border-radius.
Card border color.
Card surface background color.
Transition duration for background-color, border-color and box-shadow on hover.

Inclusion

Accessibility

ARIA roles, keyboard navigation and focus management. Sourced from the real component template.

ARIA roles

group

Keyboard interactions

Keyboard interactions
KeyAction
TabMoves focus into the match card and through each competitor row.

Notes

  • The root has aria-label="Match: A versus B" computed from competitor names.
  • The "Watch live" link opens in a new tab with rel="noopener noreferrer" for security.
  • Status badges (LIVE, Completed…) are preceded by a colored dot using ::before — no alt text needed as the text label is present.
  • LIVE badge animation (blink + ping) is disabled under prefers-reduced-motion: reduce.

Interactive

Playground

Edit props live and see the component update in real time. The generated code snippet updates as you change values.

This is an internal sub-part: it is injected by its parent component and cannot render on its own. See the parent component page for a live example.

Rendering the live preview…

Usage

Examples

Ready-to-paste code snippets for your templates.

Basic match card

vue

Live match with watch link

vue

Ecosystem

Family

Components from the same folder that share conventions and often compose together.