Description List API
View componentThe full prop reference for the Description List component. A semantic dl / dt / dd compound for key–value pairs, with horizontal or vertical layout.
Import
tsx
import { DescriptionList } from '@structyl/styled';Props
DescriptionList
A semantic dl element for key–value pairs. Compound component — use DescriptionList.Term and DescriptionList.Details. Extends the native dl element.
| Prop | Type | Default |
|---|---|---|
| orientation# | 'horizontal' | 'vertical'Two-column (horizontal) or stacked (vertical) layout. | 'horizontal' |
DescriptionList.Term
A term in the list. Renders a dt element. Accepts all standard HTML attributes.
| Prop | Type | Default |
|---|
DescriptionList.Details
The details for a term. Renders a dd element. Accepts all standard HTML attributes.
| Prop | Type | Default |
|---|
Source code
If you didn't find what you need here, read the component implementation .