Skip to content
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
  • items is a list of { label, value }. An item with no value shows a dash.
  • The value slot gets { item, index }, for a badge, a link, or anything else.
  • columns sets the most columns. A column is never narrower than 12rem, so on a phone the pairs stack in one column. Set --bless-descriptions-min to change that width.
  • bordered puts 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

NameTypeDefaultDescription
items*BlessDescriptionItem[]—
columnsnumber1the most columns; a column is never narrower than `--bless-descriptions-min` (12rem)
borderedboolean—lines between the pairs, as one plate

Slots

NameScopeDescription
value{ item: BlessDescriptionItem; index: number; }

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