---
title: "Knockout Wheel"
description: "Free React radial tournament bracket: the champion at the hub, each round a ring further out, teams on the rim. Hover a team to isolate it. shadcn install."
category: "Blocks"
parent: "https://beui.dev/components/blocks/knockout-bracket"
publishedAt: "2026-07-12"
updatedAt: "2026-11-25"
documentation: "https://beui.dev/components/blocks/knockout-bracket/knockout-wheel"
markdown: "https://beui.dev/components/blocks/knockout-bracket/knockout-wheel.md"
license: "MIT"
---

# Knockout Wheel

> Free React radial tournament bracket: the champion at the hub, each round a ring further out, teams on the rim. Hover a team to isolate it. shadcn install.

## Install

```bash
npx shadcn@latest add @beui/knockout-wheel
```

## Dependencies

- `@floating-ui/dom`
- `clsx`
- `lucide-react`
- `motion`
- `react`
- `react-dom`
- `tailwind-merge`

## Usage

### Knockout Wheel usage

The tournament drawn radially. The champion holds the hub, each round is a ring further out, and the teams themselves form the rim. Nodes spring in ring by ring, and hovering one isolates that team while the rest recede. Teams show a flag, a logo or their initials, and a deeper draw grows another ring.

```tsx
"use client";

import { KnockoutWheel, ROUNDS } from "@/components/motion/knockout-wheel";

// `ROUNDS` is the sample 32-team cup that ships with the component, and it's the
// same array the knockout bracket takes, so one dataset feeds both fixture
// styles. Any other single-elimination tournament renders the same way. Build
// your own `Round[]`, widest round first, each round holding half the matches of
// the one before it, and pass it in:
//
//   const rounds: Round[] = [
//     {
//       name: "Quarter-finals",
//       matches: [
//         {
//           id: "qf-1",
//           home: { team: { name: "Cloud9", logo: "/logos/c9.svg" }, score: 2 },
//           away: { team: { name: "T1", logo: "/logos/t1.svg" }, score: 1 },
//           winner: "home",
//         },
//         // qf-2, qf-3, qf-4 …
//       ],
//     },
//     { name: "Semi-finals", matches: [/* fed by qf 1+2 and qf 3+4 */] },
//     { name: "Grand final", matches: [/* the one final */] },
//   ];
//
// The wheel grows a ring per round and holds a 32rem stage at every size, so it
// pans on a phone rather than shrinking its marks. A team carries a `logo` URL,
// an ISO country `code` for a flag, or neither, in which case its initials stand
// in. `initialRound` drops the outer rounds.
export function KnockoutWheelPreview() {
  return (
    <div className="w-full py-8">
      <KnockoutWheel rounds={ROUNDS} />
    </div>
  );
}
```

## API Reference

### KnockoutWheel

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `rounds` | `Round[]` | — | Yes | 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. |
| `initialRound` | `number` | `0` | No | 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. |
| `className` | `string` | — | No | Classes merged onto the root scroll container. |
| `labels` | `Partial<{ label: string; labelWithChampion: string; tbd: string; versus: string; result: string; resultPenalties: string; caption: string; }>` | — | No | Override any built-in string. |

## Types

### Round

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | Read out with the match in tooltips and the screen-reader list. |
| `matches` | `Match[]` | Yes | The round's matches, in draw order; half as many as the round before. |

### Match

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | Unique key for the match's node on the wheel. |
| `home` | `MatchSide` | Yes | First side: its team and score. Feeds from match `2k` of the round before. |
| `away` | `MatchSide` | Yes | Second side: its team and score. Feeds from match `2k + 1` of the round before. |
| `winner` | `"home" \| "away"` | No | Side that went through; its team fills the next ring. Unset while undecided. |

## More in Fixtures

- [Knockout Bracket](https://beui.dev/components/blocks/knockout-bracket/knockout-bracket.md)

## Source

- Registry detail: https://beui.dev/r/knockout-wheel
- Raw source: https://beui.dev/r/knockout-wheel/raw
- GitHub: https://github.com/starc007/ui-components
