Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Knockout Wheel

KnockoutWheel.vue
SSASBSPSJSCRJSNPNEGPEBEUEWCUCBCDBCFAFIFMFPSMBIBTSIAGAMAPQMGNGSAN
  • Spain v Argentina · 2–1
  • Spain v Brazil · 2–1
  • France v Argentina · 0–0 (3–4 pens)
  • Spain v Portugal · 1–0
  • England v Brazil · 2–3
  • France v Italy · 2–1
  • Argentina v Germany · 3–1
  • Spain v Japan · 2–0
  • Netherlands v Portugal · 1–3
  • England v Uruguay · 2–1
  • Croatia v Brazil · 0–1
  • France v Morocco · 3–1
  • Belgium v Italy · 1–2
  • Argentina v Mexico · 2–0
  • Germany v Norway · 1–1 (4–2 pens)
  • Spain v Costa Rica · 3–0
  • Japan v Serbia · 2–1
  • Netherlands v Ecuador · 2–0
  • Ghana v Portugal · 2–3
  • England v Wales · 4–0
  • Canada v Uruguay · 0–2
  • Croatia v Denmark · 1–0
  • Brazil v Cameroon · 3–1
  • France v Poland · 2–1
  • Senegal v Morocco · 0–1
  • Belgium v Tunisia · 2–0
  • Switzerland v Italy · 1–3
  • Argentina v Peru · 2–0
  • Qatar v Mexico · 0–1
  • Germany v Sweden · 4–2
  • Austria v Norway · 1–2

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/knockout-wheel

Import the shared styles once in your application.

TSUsage
import KnockoutWheel from '@/components/beui/blocks/KnockoutWheel.vue'
import '@/components/beui/styles.css'

API Reference

rounds
TournamentRound[]

The whole draw, ordered widest round first — the same array the knockout bracket takes. Any single-elimination tournament fits: each round holds half the matches of the one before it (16 → 8 → 4 → 2 → 1) and `rounds[r].matches[k]` is fed by matches `2k` and `2k + 1` of the round before it. Two rounds are enough; the wheel grows a ring per round and sizes itself to the rim.

Default—
initialRound?
number

Index of the outermost round to draw. Earlier rounds are dropped and the kept round's own teams become the rim, so `1` on a 32-team draw opens at the Round of 16. Defaults to 0 (the whole tree); clamped to the valid range.

Default0
className?
string
Default—
labels?
Partial<KnockoutWheelMessages>

Override any built-in string.

Default—

Knockout Bracket

KnockoutBracket.vue
Showing Round of 16, Quarter-finals, and Semi-finals
Round of 16
Quarter-finals
Semi-finals
  • Sat, 4 JulFT
    Canada0
    Morocco3
  • Sun, 5 JulFT
    Paraguay0
    France1
  • Mon, 6 JulFT
    USA1
    Belgium4
  • Mon, 6 JulFT
    Portugal0
    Spain1
  • Mon, 6 JulFT
    Brazil1
    Norway2
  • Mon, 6 JulFT
    Mexico2
    England3
  • Tue, 7 JulFT (P)
    Switzerland0 (4)
    Colombia0 (3)
  • Tue, 7 JulFT
    Argentina3
    Egypt2
  • Fri, 10 Jul, 4:00 amFT
    France2
    Morocco0
  • Sat, 11 Jul, 3:00 amFT
    Spain2
    Belgium1
  • TodayFT
    Norway1
    England2
  • TodayFT
    Argentina3
    Switzerland1
  • Wed, 15 Jul, 4:00 am
    France
    Spain
  • Thu, 16 Jul, 3:00 am
    England
    Argentina
  • Third place play-off

    Sun, 19 Jul, 3:00 am
    TBD
    TBD

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/knockout-bracket

Import the shared styles once in your application.

TSUsage
import KnockoutBracket from '@/components/beui/blocks/KnockoutBracket.vue'
import '@/components/beui/styles.css'

API Reference

rounds
TournamentRound[]

The whole draw, ordered widest round first. Any single-elimination tournament fits: each round holds half the matches of the one before it (16 → 8 → 4 → 2 → 1) and `rounds[r].matches[k]` is fed by matches `2k` and `2k + 1` of the round before it. Two rounds are enough.

Default—
initialRound?
number

Round shown as the leftmost column on mount. Defaults to 1, clamped to the valid range.

Default1
thirdPlace?
TournamentMatch

Third place play-off, rendered under the bracket instead of inside it.

Default—
thirdPlaceLabel?
string

Heading over `thirdPlace`. Defaults to the `thirdPlace` message ("Third place play-off").

Default—
labels?
Partial<typeof knockoutBracketMessages>

Override any built-in string.

Default—
className?
string
Default—
locale?
string

BCP 47 tag used to join the visible round names in the live status. Defaults to `en`.

Default—

Updated