ValyroUI English version

Tournament Bracket

Турнирная сетка: single и double elimination, счёт серий, победитель, путь команды, монограммы. Pro · Игры › Турниры и патчи

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add tournament-bracket
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { TournamentBracket } from 'valyro-ui-pro';

Пропсы

PropTypeDefault
teams *EsportsTeam[]Teams or players.
matches *EsportsMatch[]Matches with their round (0 = first) and index inside it. Lower-bracket and grand-final matches (bracket: 'lower' | 'grand') make it a double-elimination bracket; a thirdPlace match goes under the final.
roundNamesstring[]Round names of the upper (or only) bracket instead of Final, Semifinals, Round N (index 0 = first round).
lowerRoundNamesstring[]Round names of the lower bracket.
onMatchClick(match: EsportsMatch) => voidMakes matches buttons, e.g. to open the match page.
highlightTeamstringTeam whose path is highlighted (the pointer highlights the team under it).
titleReactNodeHeading. Default: labels.title.
subtitleReactNodeLine under the heading: dates, format, prize pool.
headingLevel2 | 3 | 4 | 53Level of the heading; rounds go one level below (default 3).
timeZonestringIANA time zone of match times (default: the ThemeProvider's, then the reader's).
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's.
labelsPartial<TournamentBracketLabels>Overrides for the built-in English text; keys left out keep their defaults.

Похожие компоненты

  • Patch Notes — Патчноут: чемпионы и предметы с иконками способностей, было → стало, бафф, нерф и изменение, фильтры
  • Tier List — Тир-лист S+…D: портреты с бейджем роли, фильтр ролей, перетаскивание мышью, тачем и с клавиатуры, экспорт
  • Meta Table — Таблица меты: тир, винрейт, пикрейт и банрейт с изменением за патч, фильтры роли и ранга, виртуализация
  • Matchup Matrix — Контрпики: матрица «чемпион против чемпиона» с тепловой шкалой и тултипами, выбор своего чемпиона, список на телефоне

Назад: Matchup Matrix · Далее: Patch Notes · Весь раздел «Игры»