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';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
entries * | PatchEntry[] | Changed champions, items, runes and mechanics. | |
sections | PatchSection[] | [] | Sections in order; entries are grouped under them and, with two or more, a switch shows one. |
version | ReactNode | Patch name or number, shown next to the heading. | |
date | DateInput | Release date. | |
cover | GameImageSource | Wide picture over the heading, e.g. a splash art: an image URL or a node. | |
coverAlt | string | '' | Alt text of the cover. Default empty: decorative. |
coverPosition | string | 'center 30%' | CSS object-position of the cover, to keep the subject in the crop. Default center 30%. |
filter | PatchNotesFilter | Kind of change shown. | |
defaultFilter | PatchNotesFilter | 'all' | Initial filter when uncontrolled. Default all. |
onFilterChange | (filter: PatchNotesFilter) => void | Called when the reader picks a filter chip. | |
sectionFilter | string | Section id shown; '' shows every section. | |
defaultSectionFilter | string | '' | Initial section when uncontrolled. Default ''. |
onSectionFilterChange | (section: string) => void | Called when the reader picks a section. | |
searchable | boolean | true | Shows the search field. Default true. |
title | ReactNode | Heading. Default: labels.title. | |
headingLevel | 2 | 3 | 4 | 2 | Level of the heading; sections and entries go one and two levels below (default 2). |
timeZone | string | IANA time zone of the date (default: the ThemeProvider's, then the reader's). | |
locale | string | BCP 47 locale for numbers and the date; defaults to the ThemeProvider's. | |
labels | Partial<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 · Весь раздел «Игры»