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

Anatomie

Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.

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

Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.

match
requis
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

Emplacements de contenu exposés par ce composant.

#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

Événements émis par ce composant.

@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

Membres exposés

Propriétés et méthodes accessibles via ref template (defineExpose). Utilisés pour le contrôle programmatique.

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

Personnalisation

Variables CSS

Propriétés CSS personnalisées exposées par ce composant. Surchargez-les pour personnaliser sans perdre la compatibilité avec le thème.

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

Accessibilité

Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.

Rôles ARIA

group

Interactions clavier

Interactions clavier
ToucheAction
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.

Interactif

Playground

Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.

Sous-partie interne : elle est injectée par son composant parent et ne peut pas se rendre seule. Voir la fiche du composant parent pour un exemple vivant.

Rendu de l’aperçu en cours…

Usage

Exemples

Extraits de code prêts à coller dans vos templates.

Basic match card

vue

Live match with watch link

vue

Écosystème

Famille

Composants du même dossier qui partagent les conventions et se composent souvent ensemble.