DescriptionList
A definition list displaying information in key-value format <dl>.
A definition list displaying information in key-value format <dl>.
<div class="description-list" aria-label="a definition list displaying information in key-value format <dl>">DescriptionList</div><DescriptionList>
<DescriptionListItem term="Date of birth" description="14 January 1990" />
<DescriptionListItem term="Address" description="1 Example Road, London" />
</DescriptionList>
// In your Svelte component:
import DescriptionList from "lily-design-system-svelte-headless/components/DescriptionList/DescriptionList.svelte";
<DescriptionList>
<!-- list children -->
</DescriptionList>
<DescriptionList>
<DescriptionListItem term="Date of birth" description="14 January 1990" />
<DescriptionListItem term="Address" description="1 Example Road, London" />
</DescriptionList>
| Prop | Type | Default | Description |
|---|---|---|---|
children | slot (required) | — | DescriptionListItem children |
...restProps | HTML attributes | — | Spread onto the root <dl> |
<dl> semantics describe a list of associated terms and descriptionsSummaryList when each row also needs an inline change/edit actionDataTable for tabular data with column headers shared across rowsThis headless component renders semantic HTML with appropriate ARIA wiring. The consumer provides all visual styling — no CSS, animations, or layout assumptions are baked in.
The component renders with .description-list as the root class. No default styles are included.
description-list-item — child term/description pairsummary-list — change-link summary list<dl> element with DescriptionListItem children<dt> term and one or more <dd> descriptionsrestProps onto the root <dl>Generated from this component's canonical metadata — the machine-checked source the implementations are held to.
<dl> semantics describe a list of associated terms and descriptionschildren: slot (required) (default: —) — DescriptionListItem children...restProps: HTML attributes (default: —) — Spread onto the root <dl>