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.
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.
- roundsrequisIBracketRound[]
- Required. Pre-ordered list of rounds — from earliest (round-of-16) to final for single-elimination.
- variantTBracketVariant'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.
- showRoundTitlesbooleantrue
- Toggle round headers.
- showScoresbooleantrue
- Toggle the score column on each competitor row.
- showSeedbooleanfalse
- Toggle the seed prefix on competitor names.
- interactivebooleantrue
- Whether match cards should be interactive (cursor, hover, keyboard focus).
- winnersLabelstring'Winners bracket'
- Heading shown above the winner-bracket tree in a double-elimination layout.
- losersLabelstring'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