• Stars
    star
    258
  • Rank 158,189 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React components for rendering a tournament bracket

npm Build Status react-tournament-bracket

image

React components for rendering a tournament bracket

Demo

Go here

Install

npm i react-tournament-bracket 

Usage

These bracket components rely on a cyclical graph data structure.
Thus, to render a bracket, you pass in only the final game. If you have a set of games matching the model, you can pass them all in to render all the brackets. The Bracket Generator will discover which games are considered 'finals' and order the rendered brackets by the height of the winning path.

import { Bracket } from 'react-tournament-bracket';
import { render } from 'react-dom';

render(<Bracket game={game}/>, document.getElementById('app'));

Development

TODO

  • Component documentation
  • Better handling of mouse team highlighting (currently, when moving between teams in a particular game, the mouse events fire in inconsistent order and can result in the wrong team left highlighted)
  • Consider simplifying the game model passed to this component
  • Add tests

More Repositories

1

jointz

✅ Zero dependency universal TypeScript validation library
TypeScript
55
star
2

java-phantomjs-wrapper

A Java wrapper around the PhantomJS binaries including a packaged HTML to PDF render script
Java
52
star
3

react-fastclick

A react component that triggers click events for taps (short localized touches)
JavaScript
20
star
4

react-sync

A declarative approach to fetching data via a React higher order component
JavaScript
18
star
5

kitty-scripts

scripts to interact with cryptokitties
JavaScript
17
star
6

LatLongToTimezoneMaven

Detect timezone from latitude/longitude pairs in java
Java
8
star
7

react-fixed-page

Declaratively fix the underlying scrolling element of a page for use in overlay elements
JavaScript
6
star
8

eth-batch-deposit

Batch staking deposit tool
TypeScript
5
star
9

react-ctxt

An alternative to using React's context feature
JavaScript
5
star
10

gleam-bot

valiant attempt at writing a node script to spam entries to a gleam contest
JavaScript
5
star
11

flexbox-css

Flexbox utility classes
HTML
4
star
12

react-page-div

A react component that expands or shrinks to fit its contents by some increment used for printing
JavaScript
4
star
13

graphbuilder

Guice module for building GraphQL schema from other Guice modules
Java
3
star
14

oauth-service

An OAuth 2.0 Server as a Service - supports e-mail and Facebook/Google login
Java
3
star
15

etsy-adblock

Remove ads from etsy listing pages with a chrome extension
JavaScript
3
star
16

react-swagger

UI for swagger 2.0 built from the ground up with react
JavaScript
2
star
17

jaxrs-lib

Jersey and Hibernate Components for building REST APIs hosted on AWS ElasticBeanstalk
Java
2
star
18

strike-a-match-js

Strike a match string similarity scoring algorithm in JavaScript
JavaScript
1
star
19

find-and-replace-array

tiny JS module for finding an object in an array and returning a copy of the array with the object replaced
JavaScript
1
star
20

hibernate-tests

Test cases for hibernate
Java
1
star
21

o2fe

OAuth2Cloud front end and administration
JavaScript
1
star
22

pgpm

webapp for pgp encryption
JavaScript
1
star
23

backbone-for-react

An extension of Backbone that supports server side pagination and sorting, parameterized collections, and nested setting and getting
JavaScript
1
star
24

swagger-oauth2

OAuth2 Swagger Docs
JavaScript
1
star
25

pgpm-old

Host a site where users can create links to receive encrypted messages
FreeMarker
1
star