Rendyn

Component library

189 components

Product blocks

Fixtures

Fixtures renders match sides, times and winners supplied by the application.

React Tailwind CSS

Practical React example

Display scheduled fixtures and recorded outcomes across named tournament rounds.

Before you copy and paste

Keep the example in the React rendering environment required by the imported component. Copy components/motion/knockout-bracket.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: clsx, lucide-react, motion, react, react-dom, tailwind-merge.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Display scheduled fixtures and recorded outcomes across named tournament rounds

// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"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>
  );
}

Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.

Keep match IDs stable and label incomplete results explicitly. Supply already-formatted times that use the tournament’s chosen time zone.

Customization

KnockoutBracketProps.rounds
Required; Round[]. 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.
KnockoutBracketProps.initialRound
Optional; number. Round shown as the leftmost column on mount. Defaults to 1, clamped to the valid range.
KnockoutBracketProps.thirdPlace
Optional; Match. Third place play-off, rendered under the bracket instead of inside it.
KnockoutBracketProps.thirdPlaceLabel
Optional; string. Heading over `thirdPlace`. Defaults to "Third place play-off".
KnockoutBracketProps.className
Optional; string.
KnockoutWheelProps.rounds
Required; Round[]. 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.
KnockoutWheelProps.initialRound
Optional; 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.
KnockoutWheelProps.className
Optional; string.
TooltipProps.content
Required; ReactNode.
TooltipProps.children
Required; ReactElement.
TooltipProps.side
Optional; Side.
TooltipProps.delay
Optional; number. Delay before showing (ms). Default 120.
TooltipProps.className
Optional; string.
TooltipProps.wrapperClassName
Optional; string. Classes for the outer wrapper span. Use to fix baseline / fill parent.

Integration notes

  • The bracket does not determine winners or validate tournament progression.
  • Do not use dimming or color as the only indication of an eliminated side.

Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP