mohux/react-brackets ? reverse-engineered prompt
Reverse engineered prompt
Build me a reusable React bracket component for tournament style layouts, like single elimination and double elimination. I want it to take round data and render the bracket nicely on desktop and mobile, with a swipeable mobile view when the screen gets small.
It should be easy to customize, so I can replace the round title rendering and the seed rendering with my own components. The seed data should support extra fields too, not just team names and dates, since I may want to pass in custom info.
Please also support a two sided single elimination layout, RTL if needed, and a clean default look that works out of the box. If you need to check the latest docs for any supporting libraries, go ahead and look them up online.