IBracketProps

interface
Component Props

Props for <OrigamBracket> — a tournament tree renderer supporting single-elimination, double-elimination and round-robin layouts. Purely presentational: accepts immutable rounds and emits interaction events.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

rounds
requis
IBracketRound[]
Required. Pre-ordered list of rounds — from earliest (round-of-16) to final for single-elimination.
variant
TBracketVariant
'single-elimination'
Tournament shape. Round-robin renders a NxN matrix instead of a tree.
direction
'horizontal' | 'vertical'
'horizontal'
Layout axis. Horizontal stacks rounds as columns. Vertical stacks rounds as rows.
showRoundTitles
boolean
true
Toggle round headers.
showScores
boolean
true
Toggle the score column on each competitor row.
showSeed
boolean
false
Toggle the seed prefix on competitor names.
interactive
boolean
true
Whether match cards should be interactive (cursor, hover, keyboard focus).
winnersLabel
string
'Winners bracket'
Heading shown above the winner-bracket tree in a double-elimination layout.
losersLabel
string
'Losers bracket'
Heading shown above the loser-bracket tree in a double-elimination layout.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Single-elimination bracket

html