Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

DescriptionList

Open .md
Live preview

Loading example…

Key-value list: terms and values in a grid, no page padding. Compose flat <dt>/<dd> pairs or DescriptionListItems (which fill an empty value with a placeholder) as children. Layout (auto/inline/stacked), value alignment and multi-column rows are container-query driven.

import { DescriptionList } from "@jcsoftdev/ui/containers";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/containers/description-list.

<DescriptionList>
<>
<dt>Cliente</dt>
<dd>Luis Ramírez</dd>
<dt>Servicio</dt>
<dd>Corte + barba</dd>
<dt>Barbero</dt>
<dd>Mateo Flores</dd>
<dt>Hora</dt>
<dd>Sábado 11:30</dd>
<dt>Total</dt>
<dd>S/ 45</dd>
</>
</DescriptionList>
Prop Type Default Description
layout "stacked" | "auto" | "inline" "auto" auto (default) puts the term beside the value and stacks them when the list’s own container is narrower than 24rem; inline never stacks; stacked always puts the term over the value.
valueAlign "end" | "start" "end" Side the values align to. Defaults to end (right in LTR); start reads like a form summary.
columns 2 | 1 | 3 1 Pairs per row once the container is at least 28rem wide; one column below. Defaults to 1.

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/containers/description-list/description-list.tsx