Data display / Leader row

Data display

Leader row

The compact row a rail is made of: position, avatar, a name with one line of why it is here, and its state.

import { EcoLeaderRow } from "vue-ecosphere"

Ranked

Only the leader’s numeral is coloured: a whole highlighted row in a list of ten says less.

1Meera RaghavanGrade 9-B · 98.4% attendance
2Kabir SharmaGrade 9-A · 97.9%
3Ananya IyerGrade 10-C · 97.1%

Unranked, with a state badge

Nilesh ShahAarav · absent · SMS + appQueued
Farah QureshiZoya · late · app onlyDelivered
Deepa MenonRohan · absent · SMSNo number

As a list of choices

Click a row: the selected one takes --brand-violet-tint, the system’s selection fill.

API

NameTypeDefaultDescription
namestring—The row’s name.
hintstring—Why this row is in this list. One line; it truncates.
initialsstring—Small avatar. The #avatar slot overrides it.
ranknumber | string—Position in a fixed 20px column. Leave it out when the list is not ranked.
topbooleanfalseFirst place: the numeral takes the accent (lbr--top).
statusEcoDataBadge—State badge at the end; or the #badge slot.
selectable / selectedbooleanfalseRender as a button (lbrl) in a rail that selects what the body shows; selected takes the violet tint.
@click(event) => void—Selectable rows only.