Skip to content

List ​

Divided rows

A plain vertical list of Items, divided by hairlines — settings rows, a contact list. For collections with paging or a layout switch, use DataView.

Basic
  • It is a <ul role="list">: the role keeps it announced as a list in Safari, which drops list semantics from unstyled lists.
  • Put BlessItems (or your own <li>s) in it; divided (default) draws the hairlines.
  • BlessListItem is a row: an optional meta (a date) with a dash, a badge (true shows NEW!), the title, and a #suffix. With href the row is a link (through your router when provided).

Usage ​

ts
import { BlessList, BlessListItem } from "blessing-ui";

API ​

BlessList ​

Props

NameTypeDefaultDescription
dividedbooleantrue

Slots

NameScopeDescription
default—

BlessListItem ​

Props

NameTypeDefaultDescription
metastring—leading meta, e.g. date
badgestring | boolean—badge text; true = NEW!
hrefstring—

Slots

NameScopeDescription
meta—
default—
suffix—

Released under the MIT License. Character names and artwork belong to their owners.