name: Vertical Tabs description: Vertical tabs provide a navigation pattern where tab items are arranged vertically, typically on the left side of the content area. They allow users to switch between different views or sections of content. category: Navigation slds_classes: root: slds-vertical-tabs elements: - class: slds-vertical-tabs__nav description: Navigation container for vertical tabs purpose: Contains the list of tab items - class: slds-vertical-tabs__nav-item description: Individual tab navigation item purpose: Container for each tab button/link - class: slds-vertical-tabs__link description: Tab link or button element purpose: Clickable element that activates a tab panel - class: slds-vertical-tabs__content description: Container for tab panel content purpose: Holds the content associated with each tab modifiers: [] states: - class: slds-is-active description: Active state for the current tab trigger: When a tab is selected and its panel is visible - class: slds-is-disabled description: Disabled state for a tab trigger: When a tab is not interactive variants: - name: Base description: Standard vertical tabs navigation classes: - slds-vertical-tabs usage_context: Default vertical tabs implementation differences: Vertical navigation with tab panels lightning_component: name: lightning-tabset url: https://developer.salesforce.com/docs/component-library/bundle/lightning-tabset mapping_notes: Lightning tabset can be configured for vertical orientation accessibility: keyboard_support: - Tab to navigate to tab list - Arrow keys (Up/Down) to navigate between tabs - Enter or Space to activate a tab - Home/End to jump to first/last tab screen_reader: - Tab list role announced - Active tab state announced - Tab panel content associated and announced - Disabled tab state announced aria_attributes: - role='tablist' on navigation container - role='tab' on tab links - role='tabpanel' on content panels - aria-selected on active tab (true/false) - aria-controls linking tab to panel - aria-labelledby linking panel to tab - aria-disabled on disabled tabs - tabindex='0' on active tab, '-1' on others usage_guidelines: when_to_use: - When you have multiple content sections to organize - For settings pages or configuration interfaces - When horizontal space is limited but vertical space is available - For side navigation patterns - When content sections are related but distinct when_not_to_use: - When horizontal tabs work better for the layout - For primary navigation (use global navigation) - When only 2-3 sections exist (consider accordion) - In very narrow viewports best_practices: - Keep tab labels short and descriptive - Provide clear visual indication of active tab - Ensure adequate spacing between tabs - Support keyboard navigation fully - Maintain tab state during navigation - Use icons to enhance tab meaning when helpful common_mistakes: - Not implementing proper ARIA tab patterns - Missing keyboard navigation - Inadequate visual feedback for active state - Too many tabs making navigation difficult - Not maintaining tab state code_examples: - title: Basic Vertical Tabs code: "
Content for Tab\ \ One
\nContent for Tab Two
\nContent for Tab Three
\nThis is\ \ the active tab content
\nThis tab is inactive
\n