name: List Builder description: A component that allows users to build and manage lists by selecting items from one list and adding them to another. Provides drag-and-drop or click-to-move functionality for managing selections. category: Complex Components slds_classes: root: '' elements: [] modifiers: [] states: [] variants: - name: Base description: Standard list builder interface classes: [] usage_context: Default list builder for managing selections differences: Two-panel interface for moving items between lists lightning_component: name: lightning-dual-listbox url: https://developer.salesforce.com/docs/component-library/bundle/lightning-dual-listbox mapping_notes: lightning-dual-listbox provides similar two-list selection functionality accessibility: keyboard_support: - Tab to navigate between lists and controls - Arrow keys to move through list items - Space to select items - Enter to move selected items - Shift+Arrow for multi-select screen_reader: - List roles announced - Selected item count announced - Move operations confirmed - List labels clearly announced aria_attributes: - role='listbox' on list containers - role='option' on list items - aria-label on lists and buttons - aria-selected on selected items - aria-multiselectable on lists allowing multi-select usage_guidelines: when_to_use: - For managing permissions or access lists - When users need to build custom collections - For configuring visible fields or columns - When ordering and selection are both needed when_not_to_use: - For simple multi-select (use checkbox list) - When items don't need reordering - For very long lists (consider search/filter) - When drag-and-drop isn't appropriate best_practices: - Provide clear labels for both lists - Show count of items in each list - Support both drag-and-drop and button moves - Allow reordering within destination list - Provide search/filter for long lists - Show visual feedback during operations common_mistakes: - Missing keyboard support - Unclear which list is source vs destination - No way to move multiple items at once - Poor performance with many items - Missing reordering capability code_examples: - title: Basic List Builder code: "
\n
\n
\n
\n \n
\n
\n
    \n
  • \n
    \n Item 1\n \ \
    \n
  • \n
  • \n
    \n Item 2\n
    \n
  • \n
\n
\n \ \
\n
\n
\n
\n
\n \n\ \ \n\ \
\n
\n
\n
\n \ \ \n
\n
\n
    \n
  • \n
    \n Item 3\n
    \n \ \
  • \n
\n
\n
\n
\n
\n
\n
\n" description: Two-panel list builder with move buttons styling_hooks: [] dependencies: css_files: - list-builder.css - listbox.css - button.css javascript: - Item selection management - Move operations - Drag-and-drop handling - Reordering logic icons: - utility:right - utility:left - utility:up - utility:down other_components: - listbox - button - form-element related_components: - name: Dual Listbox relationship: alternative description: Lightning component alternative - name: Picklist relationship: similar description: Simpler selection pattern - name: Dueling Picklist relationship: similar description: SLDS version of dual-listbox pattern references: official_docs: https://v1.lightningdesignsystem.com/components/list-builder/ metadata: version: 1.0.0 last_updated: '2025-11-11' author: SLDS Documentation Team slds_version: 2.27.2 review_status: complete source: official-slds notes: Created from official SLDS documentation and design-system-internal source code