Skip to content
Data Display

Description List

Server Component

Semantic dl/dt/dd pairs in stacked, horizontal, or grid-card layouts for detail panes and order summaries.

Import

tsx
import { DescriptionList } from "@cronus-ui/ui";
bash
npx cronus-ui add description-list

Examples

API Reference

Generated from the component's exported types.

DescriptionListProps

Extends HTMLAttributes<HTMLDListElement>, VariantProps<typeof descriptionListVariants>

Skip DescriptionListProps props table
PropTypeDefaultDescription
layout
"stacked" | "horizontal" | "grid""stacked"How term/details pairs are arranged. `stacked` places each term above its details; `horizontal` aligns them into classic two-column rows with a divider between rows; `grid` spreads grouped pairs across a responsive 1 → 2 → 3 column set of card tiles.
size
"sm" | "md""md"Density preset controlling the type scale and spacing.
striped
booleanfalseTints alternate rows for scannability. The zebra counts only div-wrapped rows — wrap each pair in a row (or a plain `<div>`); raw `<dt>`/`<dd>` pairs are never counted or tinted.
bordered
booleanfalseWraps the list in a rounded outer border and insets the content.
detailsAlign
"start" | "end""start"Alignment of the details column. Logical (`text-start`/`text-end`), so `end` stays correct in RTL.

DescriptionItemProps

Extends HTMLAttributes<HTMLDivElement>

Skip DescriptionItemProps props table
PropTypeDefaultDescription
term*
ReactNodeThe label rendered in the pair's .