BracketMatch
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.
<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.
- matchrequisIBracketMatch
- Match payload containing competitorA, competitorB, scoreA, scoreB, winnerId, status, scheduledAt and advantage data.
- statusTBracketMatchStatus
- Overrides match.status. Accepted values: "pending", "live", "completed", "forfeited".
- tostring
- URL for the "Watch live" link shown when status is "live".
- isFinalbooleanfalse
- When true applies the --final visual treatment (elevated shadow, larger card, rounded corners).
- showScoresbooleantrue
- Forwarded to OrigamBracketCompetitor to toggle the score column.
- showSeedbooleanfalse
- Forwarded to OrigamBracketCompetitor to toggle the seed prefix.
- interactivebooleantrue
- When true the card and its competitor rows advertise interactivity (hover, cursor, role="button").
- idstring
- classstring | Array<string> | object
- stylestring | Array<string> | object | StyleValue
- tagstring'div'
- HTML element rendered as the match card root.
- Intent color forwarded to competitor rows. Drives the winner tint and the auto-contrast text color.
- bgColor
- Background color of the match card.
- hoverboolean | IStateEffectConfig
- hoverClassstring
- activeboolean | IStateEffectConfig
- activeClassstring
- Border-radius override for the match card.
- roundedTopRightboolean | number | string
- roundedTopLeftboolean | number | string
- roundedBottomLeftboolean | number | string
- roundedBottomRightboolean | number | string
- roundedStartStartboolean | number | string
- roundedStartEndboolean | number | string
- roundedEndStartboolean | number | string
- roundedEndEndboolean | number | string
- elevationTElevation
- Box-shadow elevation override for the match card.
- borderboolean | number | string | TDirectionBoth | Array<TDirectionBoth>
- borderColorstring
- borderTopboolean | number | string
- borderLeftboolean | number | string
- borderBottomboolean | number | string
- borderRightboolean | number | string
- borderBlockboolean | number | string
- borderInlineboolean | number | string
- borderBlockStartboolean | number | string
- borderBlockEndboolean | number | string
- borderStylestring
- borderTopColorTColor
- borderRightColorTColor
- borderBottomColorTColor
- borderLeftColorTColor
- borderBlockStartColorTColor
- borderBlockEndColorTColor
- density
- Controls card and competitor row padding. compact: 56px min-height, comfortable: 88px.
- heightnumber | string
- maxHeightnumber | string
- maxWidthnumber | string
- minHeightnumber | string
- minWidthnumber | string
- widthnumber | string
- paddingboolean | number | string
- paddingTopboolean | number | string
- paddingLeftboolean | number | string
- paddingBottomboolean | number | string
- paddingRightboolean | number | string
- paddingBlockboolean | number | string
- paddingInlineboolean | number | string
- paddingInlineStartboolean | number | string
- paddingInlineEndboolean | number | string
- paddingBlockStartboolean | number | string
- paddingBlockEndboolean | number | string
- marginboolean | number | string
- marginTopboolean | number | string
- marginLeftboolean | number | string
- marginBottomboolean | number | string
- marginRightboolean | number | string
- marginBlockboolean | number | string
- marginInlineboolean | number | string
- marginInlineStartboolean | number | string
- marginInlineEndboolean | number | string
- marginBlockStartboolean | number | string
- marginBlockEndboolean | 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.
- @clickIBracketMatch, MouseEvent
- Fired on card click (not inside a competitor row). Receives the match payload and the native event.
- @competitor-clickIBracketCompetitor, IBracketMatch, 'A' | 'B', MouseEvent | KeyboardEvent
- Fired when a competitor row is clicked. Receives the competitor, match, side ("A" or "B") and the event.
- @winner-clickIBracketCompetitor, IBracketMatch, MouseEvent | KeyboardEvent
- Fired additionally when the clicked competitor is the winner of the match.
- @update:activeany
- @update:hoverboolean
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
Interactions clavier
| Touche | Action |
|---|---|
| Tab | Moves 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
Live match with watch link
Écosystème
Famille
Composants du même dossier qui partagent les conventions et se composent souvent ensemble.