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
- Blu-ray Disc BOX 発売決定!全25話収録
- 「冴えない彼女の育てかた Fine」公開日決定
- スペシャルイベント開催
- no meta, plain row
- 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. BlessListItemis a row: an optionalmeta(a date) with a dash, abadge(trueshows NEW!), the title, and a#suffix. Withhrefthe row is a link (through your router when provided).
Usage
ts
import { BlessList, BlessListItem } from "blessing-ui";API
BlessList
Props
| Name | Type | Default | Description |
|---|---|---|---|
divided | boolean | true |
Slots
| Name | Scope | Description |
|---|---|---|
default | — |
BlessListItem
Props
| Name | Type | Default | Description |
|---|---|---|---|
meta | string | — | leading meta, e.g. date |
badge | string | boolean | — | badge text; true = NEW! |
href | string | — |
Slots
| Name | Scope | Description |
|---|---|---|
meta | — | |
default | — | |
suffix | — |