--- id: slds.guidance.utilities.description-list title: Description List Utilities description: SLDS description list utility classes for semantic key-value displays summary: "Utilities for creating description lists with inline and horizontal layout variants." artifact_type: reference domain: utilities topic: description-list content_format: structured complexity: intermediate audience: [implementer] tasks: [implement] refs: - slds.guidance.utilities - slds.guidance.overview.utilities - slds.guidance.hooks.spacing tags: [utilities, description-list, layout, semantic] keywords: [slds-dl_inline, slds-dl_horizontal, description-list, dl] --- # Description List - Semantic Key-Value Layouts Utilities for creating responsive description lists with inline and horizontal layouts. ## Core Classes | Class | Purpose | |-------|---------| | `slds-dl_inline` | Creates inline layout where terms and descriptions flow horizontally | | `slds-dl_inline__label` | Marks the term (`
`) in an inline description list | | `slds-dl_inline__detail` | Marks the description (`
`) in an inline description list | | `slds-dl_horizontal` | Creates horizontal layout with 30/70 width split | | `slds-dl_horizontal__label` | Marks the term (`
`) with 30% width | | `slds-dl_horizontal__detail` | Marks the description (`
`) with 70% width | ## Layout Variants ### Inline Layout Terms and descriptions display side-by-side in a flowing layout. Responsive at `min-width: 30em`. | Property | Value | |----------|-------| | Term float | `inline-start` with `clear` | | Description float | `inline-start` | | Description padding | `--slds-g-spacing-1` (4px) | ### Horizontal Layout Terms and descriptions align in columns with fixed proportions. Responsive at `min-width: 30em`. | Property | Value | |----------|-------| | Layout | `flex` with `wrap` | | Term width | 30% | | Description width | 70% | | Term padding | `--slds-g-spacing-3` (12px) end | ## Common Patterns ### Basic Inline Description List ```html
Status:
Active
Created:
January 15, 2024
Owner:
Sarah Johnson
``` ### Horizontal Description List with Column Layout ```html
Account Name:
Acme Corporation
Industry:
Technology
Annual Revenue:
$50M - $100M
``` ### Inline Layout in Narrow Region ```html
Type:
Customer
Priority:
High
``` ### Horizontal Layout in Narrow Region ```html
Contact:
John Smith
Email:
john.smith@acme.com
Phone:
(555) 123-4567
``` ### Mixed Content Description List ```html
Description:
Enterprise customer with multiple product installations requiring dedicated support and quarterly business reviews.
Products:
Sales Cloud, Service Cloud, Marketing Cloud
Support Level:
Premium
``` ## Responsive Behavior ### Breakpoint Activation All description list utilities activate at `min-width: 30em` (480px): - Below breakpoint: Standard stacked `
` layout - Above breakpoint: Applied utility layout (inline or horizontal) ### Narrow Region Support Use `.slds-region_narrow` container to force responsive styles regardless of viewport: - Inline layout maintains float behavior - Horizontal layout maintains flex column structure ## Best Practices ✅ Use `slds-dl_inline` for compact, single-line key-value pairs ✅ Use `slds-dl_horizontal` for detailed information with longer descriptions ✅ Apply matching label and detail classes to all `
` and `
` elements ✅ Wrap in `.slds-region_narrow` for consistent layout in sidebars or modals ✅ Use semantic HTML (`
`, `
`, `
`) for accessibility ❌ Never mix inline and horizontal classes on the same list ❌ Never omit the child classes (`__label`, `__detail`) when using parent classes ❌ Never use for non-semantic layouts (use grid or flexbox utilities instead) ❌ Never override the 30/70 width ratio for horizontal layouts