Zephora UI

Data

Descriptions

Key-value description list rendered as a semantic dl grid with configurable columns, spans, borders and horizontal or vertical label layout.

Import

import { Descriptions } from "@zephora/react";

Examples

Basic

Order details
Order no.
ZR-10482
Status
Shipped
Payment
Credit card
Customer
Ada Lovelace
Shipping address
12 Analytical Way, London

Bordered and vertical

`bordered` draws cell borders; the vertical layout stacks each label above its content.

Order details
Order no.
ZR-10482
Status
Shipped
Payment
Credit card
Customer
Ada Lovelace
Shipping address
12 Analytical Way, London

API

Descriptions props

PropTypeDefaultDescription
items *DescriptionsItem[]Key/value pairs to display.
columnsnumber3Number of grid columns.
layout"horizontal" | "vertical""horizontal"Label beside content (horizontal) or above it (vertical).
borderedbooleanfalseDraws cell borders around every item.
size"sm" | "md" | "lg""md"Density scale.
titleReactNodeHeading rendered above the list.
extraReactNodeExtra content aligned to the end of the header row (actions…).
unstyledbooleanfalseHeadless mode — skips Zephora styling.

DescriptionsItem props

PropTypeDefaultDescription
label *ReactNodeTerm rendered in the `<dt>`.
content *ReactNodeDetail rendered in the `<dd>`.
spannumber1How many columns this item spans (clamped to `columns`).