Description list
Facts about one thing as term and value: stacked, inline like a receipt, or a grid of key figures (KeyValueGrid).
- Domain
- Data display
- Support level
- Size
- 0.9 kB gzip, budget 1.0 kB
- Who uses it
- 20 files of the live products and sites import it (Verikora: 7, Folioviv: 6, Sovkora: 3) Counted in the dated inventory of 2026-11-23.
import { DescriptionList, KeyValueGrid } from "@krizaka/ui/description-list";Web and mobile — the same component for React and React Native. Beta: its API may still change in a minor version.
Why it is here. Used by Sovkora, Verikora, Folioviv.
When to use
- A job's details in a side panel.
- A payout's or a tip's breakdown.
- An account's limits as a grid of figures.
When not to use
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { DescriptionList, KeyValueGrid } from "@krizaka/ui/description-list";Examples
Details
A job's status, studio, start and credits.
Receipt
layout="inline": where a tip goes.
Key figures
KeyValueGrid: an account's limits as cards that wrap.
Props
DescriptionList
Term and value pairs — a job's details, a payout's breakdown — stacked, inline like a receipt, or as cards.
| Prop | Type | Default | Description |
|---|---|---|---|
itemsrequired | readonly DescriptionItem[] | — | The pairs, in reading order. |
layout | "grid" | "inline" | "stacked" | — | stacked (default: a details panel) · inline (term left, value right: a receipt, a summary) · grid (cards). |
KeyValueGrid
Key figures as a grid of cards that wraps with the width: a job's numbers, an account's limits.
| Prop | Type | Default | Description |
|---|---|---|---|
itemsrequired | readonly DescriptionItem[] | — | The pairs, in reading order. |
minWidth | number | 10 | The narrowest a card may be before the grid wraps, in rem. Default 10. |
Accessibility
- A
dl: each term (dt) names its value (dd). - On React Native each pair is one element, read as “term, value”.
Best practices
- Keep the terms short and the values formatted (
@krizaka/intl). - Inline for amounts that add up; grid for figures to scan.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub