DescriptionListItem
One key-value pair in a description list using dt and dd elements.
One key-value pair in a description list using dt and dd elements.
<div class="description-list-item" aria-label="one key-value pair in a description list using dt and dd elements">DescriptionListItem</div><div class="description-list-item" aria-label="one key-value pair in a description list using dt and dd elements">DescriptionListItem</div>
// In your Svelte component:
import DescriptionListItem from "lily-design-system-svelte-headless/components/DescriptionListItem/DescriptionListItem.svelte";
<DescriptionListItem>
<!-- DescriptionListItem content -->
</DescriptionListItem>
<DescriptionListItem term="Email" description="user@example.com" />
| Prop | Type | Default | Description |
|---|---|---|---|
term | string (required) | — | Term shown in the <dt> |
description | string | — | Description shown in the <dd> (when no children slot) |
children | slot | — | Custom description content (overrides description) |
...restProps | HTML attributes | — | Spread onto the root <div> |
<dt> and <dd> retain their native term/description semantics inside the wrapperDescriptionListSummaryListItem when the row also needs an inline change linkThis 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-item as the root class. No default styles are included.
description-list — parent listsummary-list-item — change-link summary list item<div> wrapping a <dt> (term) and a <dd> (description) so each item is a single styling unit while preserving native list semantics<dt>/<dd> pairs in a <div> inside <dl> is validrestProps onto the root <div>Generated from this component's canonical metadata — the machine-checked source the implementations are held to.
<dt> and <dd> retain their native term/description semantics inside the wrapperterm: string (required) (default: —) — Term shown in the <dt>description: string (default: —) — Description shown in the <dd> (when no children slot)children: slot (default: —) — Custom description content (overrides description)...restProps: HTML attributes (default: —) — Spread onto the root <div>