Repository navigation
Releases
Releases · MohOulabi/react-brackets
react-brackets 2.0
A ground-up rewrite. Headless, responsive tournament brackets for React.
npm i react-brackets @react-brackets/themeHighlights
- Every format: single and double elimination, two-sided brackets, round robin, Swiss, and groups to playoffs, with seeding, byes, results and standings.
- Headless: semantic markup with
data-*attributes andclassNamesfor every part. The optional theme always loses to your own CSS or Tailwind classes, andunstyledopts a bracket out of it. - A bracket on every screen: narrow containers get a swipeable bracket that folds into the next round; wide ones can scroll, fit, or pan and zoom.
- Accurate lines: connectors are measured from your real match cards, so custom cards, two-sided layouts and right-to-left pages just work.
- Interaction: clickable matches, highlighted paths, controlled paging and highlighting, live scores, and tunable motion that respects reduced motion.
- No dependencies besides React 18 or 19, about 6 kB gzipped for the components.
Packages
| Package | |
|---|---|
react-brackets |
The React components. Re-exports the core. |
@react-brackets/core |
Formats, results, standings and layout. Framework-agnostic. |
@react-brackets/theme |
The optional stylesheet. |
Upgrading from 0.x
This is a breaking release. The migration guide maps every 0.x prop to 2.0. The 0.x code stays on the legacy branch.
Initial release
This is the first release of this package, it's still new so changes may occur so often