About Product Switcher
Product Switcher is a menu component that enables users to navigate between different products, applications, or modules. Built on the Menu component, it provides a consistent way to switch contexts within a larger platform.Components
- ProductSwitcher - Main menu container
- ProductSwitcherItem - Individual product option
- ProductSwitcherButton - Button to trigger the menu
- useProductSwitcherState - Hook for menu state management
Installation
Usage
Props
ProductSwitcher
Accepts all Menu props for state management.ProductSwitcherItem
ProductSwitcherButton
State Management
UseuseProductSwitcherState hook to manage menu state:
With Icons
Add icons to product items for visual identification:Navigation Patterns
Link-based Navigation
Usehref for standard navigation:
Client-side Routing
UseonClick with router libraries:
Accessibility
- Uses semantic menu markup with ARIA attributes
- Keyboard navigation with arrow keys
- Focus management on open/close
- Menu state announced to screen readers
- Supports keyboard activation (Enter/Space)
Topbar Integration
Product Switcher is commonly used in the Topbar:Related components
- Menu - Base menu component
- Account Switcher - Account selection
- Topbar - Application navigation bar