DescriptionList
Data Display

DescriptionList

Key/value fact sheet: a label–value pair list like a spec sheet or detail card.

Props

DescriptionList extends HTMLAttributes<HTMLDivElement>.

DescriptionListProps props
PropTypeDefaultDescription
rowsDescriptionRow[]—Array of key/value row definitions.
spaciousboolean—Roomier rows, for a review pane rather than a dense detail panel. WizardSummary is this list in that mode.

DescriptionRow

DescriptionRow props
PropTypeDefaultDescription
keyReactNode—Label for the row.
valueReactNode—Value displayed next to the label.
monoboolean—Renders the value in monospace font.
onClick() => void—Makes the row clickable and shows hover styling.
actionReactNode—Content after the value. Remains separate from wrapped value text.

Examples

Basic description list

Basic description list

With monospace values

Description list with mono values

Clickable rows

Description list with clickable rows
ImportTSX
import { DescriptionList } from "@solarius/onset";
import type { DescriptionRow } from "@solarius/onset";