ValyroUI English version

Tier List

Тир-лист S+…D: портреты с бейджем роли, фильтр ролей, перетаскивание мышью, тачем и с клавиатуры, экспорт. Pro · Игры › Мета и тир-листы

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add tier-list
npm install valyro-ui-pro

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

Пропсы

PropTypeDefault
items *TierItem[]Everything that can be ranked. Items in no tier wait in the unranked row.
tiersTierDef[]DEFAULT_TIERSTiers from best to worst. Default S+, S, A, B, C, D.
rolesGameRole[]Roles of the items: badges on the portraits and, with two or more, a role filter.
valueTierPlacementTier id → item ids in order.
defaultValueTierPlacement{}Initial placement when uncontrolled. Default: everything unranked.
onValueChange(value: TierPlacement) => voidCalled with the new placement after every drop.
roleFilterstringRole id the list is narrowed to; '' shows every role.
defaultRoleFilterstring''Initial role filter when uncontrolled. Default '' (every role).
onRoleFilterChange(role: string) => voidCalled when the reader picks a role.
mode'view' | 'edit'view reads the list; edit drags items between tiers and shows the unranked row.
defaultMode'view' | 'edit''view'Initial mode when uncontrolled. Default view.
onModeChange(mode: TierListMode) => voidCalled when the reader switches the mode.
editablebooleantrueShows the view / edit switch. Default true; false keeps the list read-only unless mode is edit.
exportablebooleantrueShows the copy-as-text and download buttons. Default true.
exportNamestring'tier-list'File name of the JSON download, without the extension. Default tier-list.
size'sm' | 'md' | 'lg''md'Portraits of 40, 52 or 64 px. Default md.
showNamesbooleantrueNames under the portraits. Default true; without them the name is in the tooltip and read aloud.
renderItem(item: TierItem, mode: TierListMode) => ReactNodeCustom tile content, e.g. a portrait with a hover card. Default: portrait, role badge and name.
onItemClick(item: TierItem) => voidMakes tiles buttons in view mode.
titleReactNodeHeading. Default: labels.title.
captionReactNodeLine under the heading: patch, rank, sample.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3).
labelsPartial<TierListLabels>Overrides for the built-in English text; keys left out keep their defaults.

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

  • Meta Table — Таблица меты: тир, винрейт, пикрейт и банрейт с изменением за патч, фильтры роли и ранга, виртуализация
  • Matchup Matrix — Контрпики: матрица «чемпион против чемпиона» с тепловой шкалой и тултипами, выбор своего чемпиона, список на телефоне
  • Tournament Bracket — Турнирная сетка: single и double elimination, счёт серий, победитель, путь команды, монограммы
  • Patch Notes — Патчноут: чемпионы и предметы с иконками способностей, было → стало, бафф, нерф и изменение, фильтры

Назад: Media Player · Далее: Meta Table · Весь раздел «Игры»