Skip to content

Releases

react-brackets 2.0

Choose a tag to compare

@MohOulabi MohOulabi released this 09 Nov 15:57

A ground-up rewrite. Headless, responsive tournament brackets for React.

npm i react-brackets @react-brackets/theme

Highlights

  • 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 and classNames for every part. The optional theme always loses to your own CSS or Tailwind classes, and unstyled opts 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

Initial release Pre-release
Pre-release

Choose a tag to compare

@mohux mohux released this 14 Sep 13:53

This is the first release of this package, it's still new so changes may occur so often