DescriptionList
Structured terms and values with responsive alignment.
Interactive preview
- Workspace
- Orbit
- Plan
- Team
- Region
- Asia Pacific
- Owner
- Ada Rivera
Usage
import { DescriptionList } from "@devvy-ui/react";
<DescriptionList items={[{term:"Workspace",description:"Orbit"},{term:"Plan",description:"Team"},{term:"Region",description:"Asia Pacific"}]} />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| items | readonly DescriptionItem[] | required | term and description for each row. |
| orientation | horizontal | vertical | horizontal | Column layout; narrow screens stack automatically. |
Accessibility & behavior
Platform Behavior & Guidelines
Uses native dl, dt and dd semantics, without table or list ARIA. Rows wrap long text and stack at narrow widths. Add actual links or formatted values in descriptions when needed. Native dl props, classes, style and refs are supported.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add description-listMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.