Navigation
The Navigation component is a versatile container that supports both tab-style navigation and link-based navigation with overflow handling and RTL support.
Basic usage
The Navigation component can be implemented in two modes using different selectors:
<
for tab-based navigationlmn-navigation-tablist ><
for link-based navigationlmn-navigation-links >
Component anatomy
Navigation Modes
Choose between two navigation styles using the component selector:
- Tablist: Traditional tab interface with tab role
- Links: Link-based navigation with navigation role
Each mode maintains appropriate ARIA roles and keyboard behavior.
Navigation Items
Items can be configured with:
- Label text
- Notification count badge
- Disabled state with tooltip
- Custom content projection
- Active state indication
Overflow Behavior
Handles content overflow with:
- Smooth horizontal scrolling
- Previous/Next navigation buttons
- Gradient indicators for overflow
- RTL support for scroll direction
- Active item auto-scrolling
Active Indicator
Visual indication of active item through:
- Underline animation
- Color changes
- Smooth transitions
- Position tracking
State Management
Control navigation state using:
activeItem
model for current selection- Selection change events
- Disabled state management
- Focus tracking
- Keyboard navigation
Negative Theme
Enable dark theme support using the negative
Input, affecting:
- Background colors
- Text colors
- Active indicators
- Overflow gradients
- Focus indicators
Accessibility
Keyboard Navigation
Comprehensive keyboard support:
- Left/Right arrows for tab navigation
- Tab key for link navigation
- Enter/Space for activation
- Focus management during scrolling
- RTL keyboard adaptation
ARIA Implementation
Mode-specific ARIA support:
- Tablist/Tab roles for tab mode
- Navigation/Link roles for link mode
- Selected state indication
- Disabled state management
- Notification announcements
Focus Management
Careful focus handling:
- Visible focus indicators
- Focus retention during scrolling
- Logical tab order
- Active item tracking
- Disabled state focus handling
Best Practices for Developers
Mode Selection DEMO HERE
Content Organization DEMO HERE
Overflow Handling DEMO HERE