BRACKET_VARIANTS

const
Components

Closed list of valid variant values for OrigamBracket. Exposed so stories and consumers can iterate the matrix without duplicating string literals.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

'single-elimination'
Single-elimination tournament — one loss ends the run.
'double-elimination'
Double-elimination — participants drop to a losers bracket before being eliminated.
'round-robin'
Round-robin — every participant plays every other participant once.

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamBracket

Usage

Examples

Ready-to-paste code snippets using this constant.

Building a variant picker from BRACKET_VARIANTS

typescript