ValyroUI English version

Patch Notes

Патчноут: чемпионы и предметы с иконками способностей, было → стало, бафф, нерф и изменение, фильтры. Pro · Игры › Турниры и патчи

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add patch-notes
npm install valyro-ui-pro

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

Пропсы

PropTypeDefault
entries *PatchEntry[]Changed champions, items, runes and mechanics.
sectionsPatchSection[][]Sections in order; entries are grouped under them and, with two or more, a switch shows one.
versionReactNodePatch name or number, shown next to the heading.
dateDateInputRelease date.
coverGameImageSourceWide picture over the heading, e.g. a splash art: an image URL or a node.
coverAltstring''Alt text of the cover. Default empty: decorative.
coverPositionstring'center 30%'CSS object-position of the cover, to keep the subject in the crop. Default center 30%.
filterPatchNotesFilterKind of change shown.
defaultFilterPatchNotesFilter'all'Initial filter when uncontrolled. Default all.
onFilterChange(filter: PatchNotesFilter) => voidCalled when the reader picks a filter chip.
sectionFilterstringSection id shown; '' shows every section.
defaultSectionFilterstring''Initial section when uncontrolled. Default ''.
onSectionFilterChange(section: string) => voidCalled when the reader picks a section.
searchablebooleantrueShows the search field. Default true.
titleReactNodeHeading. Default: labels.title.
headingLevel2 | 3 | 42Level of the heading; sections and entries go one and two levels below (default 2).
timeZonestringIANA time zone of the date (default: the ThemeProvider's, then the reader's).
localestringBCP 47 locale for numbers and the date; defaults to the ThemeProvider's.
labelsPartial<Omit<PatchNotesLabels, 'kinds' | 'entryKinds'>> & { kinds?: Partial<Record<PatchChangeKind, string>>; entryKinds?: Partial<Record<PatchChangeKind, string>>; }Overrides for the built-in English text; keys left out keep their defaults.

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

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

Назад: Tournament Bracket · Далее: Toggle · Весь раздел «Игры»