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—

Updated