--- id: slds.guidance.utilities.vertical-list title: Vertical-list Utilities description: SLDS vertical list utility classes for list formatting and spacing summary: "Utilities for vertical lists including dividers, cards, spacing, link blocks, and list styles (dotted, ordered)." artifact_type: reference domain: utilities topic: vertical-list content_format: structured complexity: intermediate audience: [implementer] tasks: [implement] refs: - slds.guidance.utilities - slds.guidance.overview.utilities tags: [utilities, lists, vertical-list, dividers] keywords: [slds-list, slds-has-dividers, vertical spacing, list formatting] --- # Vertical List - Formatting & Spacing Creating and styling vertical lists with consistent spacing, dividers, and interactive states. ## Core Classes | Class | Purpose | |-------|---------| | `slds-list_vertical` | Base vertical list container | | `slds-list__item` | Individual list item | | `slds-item` | Generic item (alternative to `slds-list__item`) | | `slds-is-selected` | Marks selected state with accent border | | `slds-is-nested` | Indents nested lists by 16px | ## List Styles | Class | Purpose | |-------|---------| | `slds-list_dotted` | Unordered list with disc bullets | | `slds-list_ordered` | Ordered list with decimal numbers | ## Spacing Variants | Class | Spacing Between Items | |-------|----------------------| | `slds-list_vertical-space` | 8px (`x-small`) | | `slds-list_vertical-space-medium` | 16px (`medium`) | ## Divider Classes ### Line Dividers | Class | Purpose | |-------|---------| | `slds-has-dividers` | Bottom border on items with hover states | | `slds-has-dividers_top` | Top border on each item | | `slds-has-dividers_bottom` | Bottom border on each item | | `slds-has-dividers_top-space` | Top border with 8px padding | | `slds-has-dividers_bottom-space` | Bottom border with 8px padding | ### Card Dividers | Class | Purpose | |-------|---------| | `slds-has-cards` | Bordered cards with rounded corners | | `slds-has-cards_space` | Bordered cards with 12px padding | | `slds-has-dividers_around` | Full border around each item | | `slds-has-dividers_around-space` | Full border with 12px padding | ### Single Dividers | Class | Purpose | |-------|---------| | `slds-has-divider` | Single top divider (8px margin + padding) | | `slds-has-divider_top` | Top border only | | `slds-has-divider_bottom` | Bottom border only | | `slds-has-divider_top-space` | Top border with padding | | `slds-has-divider_bottom-space` | Bottom border with padding | | `slds-has-divider_right` | Right border only | | `slds-has-divider_left` | Left border only | ## Link Blocks | Class | Purpose | |-------|---------| | `slds-has-block-links` | Makes links display block | | `slds-has-block-links_space` | Block links with 12px padding | | `slds-has-inline-block-links` | Makes links display inline-block | | `slds-has-inline-block-links_space` | Inline-block links with 12px padding | ## Interactive States | Class | Purpose | |-------|---------| | `slds-has-list-interactions` | Enables hover and active states | ## Common Patterns ```html
Card content with 12px padding
Automatically spaced 8px apart