Skip to content

OrigamBracketRound ​

A single round column (horizontal mode) or row (vertical mode) of a tournament bracket. Exported so you can render a round standalone outside a full OrigamBracket tree.

vue
<OrigamBracketRound
    :round="round"
    :index="0"
    :total-rounds="3"
/>

Props ​

Core ​

PropTypeDefault
roundIBracketRound— (required)
indexnumber— (required)
totalRoundsnumber— (required)
showRoundTitlebooleantrue
showScoresbooleantrue
showSeedbooleanfalse
interactivebooleantrue
colorTIntent | <css-color>'primary'
direction'horizontal' | 'vertical''horizontal'
tagstring'div'

Typography ​

Props applied to the round title heading (__title). fontSize, fontWeight, and letterSpacing have a visual effect — the __title SCSS block reads the corresponding --origam-bracket-round-title---* variables.

PropTypeCSS variable emitted
fontSizeTFontSize--origam-bracket-round-title---font-size
fontWeightTFontWeight--origam-bracket-round-title---font-weight
letterSpacingTLetterSpacing--origam-bracket-round-title---letter-spacing

fontFamily and lineHeight were removed from IBracketRoundProps (issue #501) — the SCSS never read either var. fontFamily is a project-level setting configured once on OrigamApp, not a per-instance override.

Emits ​

EventPayload
match-click(match: IBracketMatch, event: MouseEvent)
competitor-click(competitor, match, side: 'A'|'B', event)
winner-click(competitor, match, event)

Slots ​

SlotScope
round-title{ round: IBracketRound, index: number }
match{ match: IBracketMatch, round: IBracketRound, isFinal: boolean }
competitor{ competitor: IBracketCompetitor | null, match: IBracketMatch, isWinner: boolean, side: 'A' | 'B' }

competitor (#388) — relayed straight through to each <OrigamBracketMatch> this round renders via its default match slot content. Before this fix, OrigamBracketRound never forwarded it: a consumer providing #competitor at OrigamBracket level saw the default OrigamBracketCompetitor row render anyway, with no way to override it short of also overriding the whole match slot.