Skip to Content
react-brackets

Small screens

A swipeable bracket on phones, or the whole tree with scroll, fit, or pan and zoom.

Below compactBelow (640px by default) the bracket pages through one round at a time. The width that counts is the container's, not the window's, so a bracket in a sidebar or a modal adapts too.

The paged bracket

Quarterfinals

  1. Falcons2
    Cobras3
  2. Lynx4
    Orcas3
  3. Wolves1
    Bison0
  4. Herons
    Ravens

Semifinals

  1. Cobras
    Lynx
  2. Wolves
    TBD

Final

  1. TBD
    TBD
compact="bracket" (default)

Quarterfinals

  1. Falcons2
    Cobras3
  2. Lynx4
    Orcas3
  3. Wolves1
    Bison0
  4. Herons
    Ravens

Semifinals

  1. Cobras
    Lynx
  2. Wolves
    TBD

Final

  1. TBD
    TBD
compact="list"

With compact="bracket" (the default), the round in focus stacks tightly and the next round peeks in with its connector lines. Swipe or tap a round and every match glides into place. Swiping past the first or last round meets a soft rubber-band resistance.

compact="list" shows each round as a plain list of matches instead.

<Bracket stage={stage} />                       // swipeable bracket
<Bracket stage={stage} compact="list" />        // swipeable lists
<Bracket stage={stage} compactBelow={480} />    // switch at a different width

The whole tree, on any screen

Set compactBelow={0} to always show the full tree, then choose how it fits with mode:

Round 1

  1. Falcons2
    Vipers3
  2. Cobras4
    Hawks3
  3. Lynx1
    Sharks0
  4. Orcas1
    Pumas0
  5. Wolves2
    Moose0
  6. Bison
    Otters
  7. Herons
    Owls
  8. Ravens
    Cranes

Quarterfinals

  1. Vipers
    Cobras
  2. Lynx
    Orcas
  3. Wolves
    TBD
  4. TBD
    TBD

Semifinals

  1. TBD
    TBD
  2. TBD
    TBD

Final

  1. TBD
    TBD
mode="scroll"

Round 1

  1. Falcons2
    Vipers3
  2. Cobras4
    Hawks3
  3. Lynx1
    Sharks0
  4. Orcas1
    Pumas0
  5. Wolves2
    Moose0
  6. Bison
    Otters
  7. Herons
    Owls
  8. Ravens
    Cranes

Quarterfinals

  1. Vipers
    Cobras
  2. Lynx
    Orcas
  3. Wolves
    TBD
  4. TBD
    TBD

Semifinals

  1. TBD
    TBD
  2. TBD
    TBD

Final

  1. TBD
    TBD
mode="fit"

Round 1

  1. Falcons2
    Vipers3
  2. Cobras4
    Hawks3
  3. Lynx1
    Sharks0
  4. Orcas1
    Pumas0
  5. Wolves2
    Moose0
  6. Bison
    Otters
  7. Herons
    Owls
  8. Ravens
    Cranes

Quarterfinals

  1. Vipers
    Cobras
  2. Lynx
    Orcas
  3. Wolves
    TBD
  4. TBD
    TBD

Semifinals

  1. TBD
    TBD
  2. TBD
    TBD

Final

  1. TBD
    TBD
mode="pan-zoom"
modeBehaviour
'scroll' (default)Native horizontal scrolling.
'fit'Scaled down to fit the width available. Best for previews and dashboards.
'pan-zoom'Drag, pinch, or Ctrl/⌘ + scroll to zoom, with zoom buttons. Panning stops at the edges.
<Bracket stage={stage} compactBelow={0} mode="pan-zoom" />

In pan-zoom mode, minScale, maxScale and controls are available on <Bracket.Viewport>.

On this page