Calm motion: animations on this site only fade, with no movement
Descriptions
Label and value pairs for a detail page
A list of facts about one thing, such as an order, a user, or an episode. Each fact is a label and a value. Use it on a detail page or in a side panel. For many rows of the same kind, use a table. For one number with a trend, use a stat.
Basic
- Title
- Saenai Heroine no Sodatekata
- Studio
- A-1 Pictures
- Episodes
- 12
- Aired
- January – March 2015
- Status
- aired
- Source
- Light novel
- Director
- —
- Title
- Saenai Heroine no Sodatekata
- Studio
- A-1 Pictures
- Episodes
- 12
- Aired
- January – March 2015
- Status
- aired
itemsis a list of{ label, value }. An item with novalueshows a dash.- The
valueslot gets{ item, index }, for a badge, a link, or anything else. columnssets the most columns. A column is never narrower than 12rem, so on a phone the pairs stack in one column. Set--bless-descriptions-minto change that width.borderedputs the pairs in one plate, with lines between them (see fuse when grouped).- It renders a native
<dl>, so screen readers announce a description list and pair each label with its value.
Usage
ts
import { BlessDescriptions } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
items* | BlessDescriptionItem[] | — | |
columns | number | 1 | the most columns; a column is never narrower than `--bless-descriptions-min` (12rem) |
bordered | boolean | — | lines between the pairs, as one plate |
Slots
| Name | Scope | Description |
|---|---|---|
value | { item: BlessDescriptionItem; index: number; } |