ValyroUI English version

Meta Table

Таблица меты: тир, винрейт, пикрейт и банрейт с изменением за патч, фильтры роли и ранга, виртуализация. Pro · Игры › Мета и тир-листы

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add meta-table
npm install valyro-ui-pro

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

Пропсы

PropTypeDefault
entries *MetaTableEntry[]Champions (or champion + role pairs) with their stats per rank.
ranks *MetaRank[]Ranks of the rank picker; the first is the default.
rankstringRank shown.
defaultRankstringInitial rank when uncontrolled. Default: the first.
onRankChange(rank: string) => voidCalled when the reader picks a rank.
rolesGameRole[]Roles of the entries: shown under the names and, with two or more, a role filter.
roleFilterstringRole id the table is narrowed to; '' shows every role.
defaultRoleFilterstring''Initial role filter when uncontrolled. Default ''.
onRoleFilterChange(role: string) => voidCalled when the reader picks a role.
sortMetaTableSortColumn and direction of the sort.
defaultSortMetaTableSort{ key: 'tier', direction: 'desc' }Initial sort when uncontrolled. Default tier, best first.
onSortChange(sort: MetaTableSort) => voidCalled when a column header is pressed.
minGamesnumber500Fewer matches than this: marked, and ranked after the rest by win rate and tier. Default 500.
tiersMetaTier[] | falseDEFAULT_META_TIERSTier column from best to worst, or false to hide it. Default S+ to D by win rate.
onRowClick(entry: MetaTableEntry) => voidMakes each champion name a button, e.g. to the champion's page.
maxHeightnumber | string560Most height of the scrolling body (px or CSS length); rows beyond it render only while in view. Default 560.
loadingbooleanfalseData is loading: skeleton rows.
errorReactNodeLoading failed: shown instead of the table.
titleReactNodeHeading. Default: labels.title.
subtitleReactNodeLine under the heading: patch, period, source.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3).
localestringBCP 47 locale for numbers and sorting; defaults to the ThemeProvider's.
labelsPartial<MetaTableLabels>Overrides for the built-in English text; keys left out keep their defaults.

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

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

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