Navigation Overview
The Amphibious navigation system provides flexible, responsive navigation components that work across all devices. Choose from horizontal, vertical, tabbed, or mobile-first patterns.
Horizontal Navigation
The most common navigation pattern for websites and applications.
Basic Horizontal Nav
<nav>
<ul class="aiab-horizontal">
<li><a href="#" class="aiab-active">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
Horizontal Nav with Dropdowns
Modern Navigation Component
The new Amphibious 2.0 navigation component with advanced features.
Full Featured Navigation
// Create a modern navigation component
const nav = amp.createNavigation('#nav-container', {
sticky: true,
transparent: false,
searchEnabled: true,
themeToggle: true,
githubUrl: 'https://github.com/your-org/amphibious',
githubStars: '1.2k',
currentPath: '/docs/'
});
Navigation Styles
Style 1: Gradient Navigation
Style 2: Minimal with Accent
Style 3: Dark Navigation
Vertical Navigation
Ideal for sidebars, admin panels, and documentation sites.
Main Content Area
The vertical navigation works great for admin interfaces and documentation sites where you need to display many navigation items in a hierarchical structure.
<nav>
<ul class="vertical">
<li><a href="#" class="aiab-active">Dashboard</a></li>
<li>
<a href="#">Products</a>
<ul>
<li><a href="#">All Products</a></li>
<li><a href="#">Add New</a></li>
</ul>
</li>
</ul>
</nav>
Breadcrumb Navigation
Help users understand their location within the site hierarchy.
Default Breadcrumbs
Alternative Separators
<nav>
<ul class="aiab-breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#" class="aiab-active">Current Page</a></li>
</ul>
</nav>
<!-- Alternative separators -->
<ul class="aiab-breadcrumb breadcrumb-slash">...</ul>
<ul class="aiab-breadcrumb breadcrumb-arrow">...</ul>
<ul class="aiab-breadcrumb breadcrumb-dot">...</ul>
Tab Navigation
Organize content into switchable panes.
Overview Tab
This is the overview content. Tab navigation is perfect for organizing related content into logical sections.
Features Tab
Detailed feature information would go here. Users can switch between tabs without page reload.
Documentation Tab
Technical documentation and API references would be displayed in this section.
Support Tab
Contact information and support resources are available in this tab.
Mobile Navigation
Responsive navigation patterns optimized for mobile devices.
Mobile Menu Demo
Mobile navigation collapses into a hamburger menu on small screens. Tap the menu icon to toggle.
Mega Menu
Large dropdown menus for complex site structures.
Sticky Navigation
Navigation that stays visible when scrolling.
Scroll this area
The navigation above will stick to the top when you scroll.
Lorem ipsum dolor sit amet, consectetur adipiscing elit...
Keep scrolling to see the sticky navigation in action...
More content here...
Even more content...
<nav class="nav-sticky">
<ul class="aiab-horizontal">
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
</ul>
</nav>
Filter Navigation
Button group style navigation for filtering content.
<nav>
<dl class="filter-nav">
<dt>Filter:</dt>
<dd><a href="#" class="aiab-active">All</a></dd>
<dd><a href="#">Popular</a></dd>
<dd><a href="#">Recent</a></dd>
</dl>
</nav>
Best Practices
Accessibility
- Use semantic HTML elements (
<nav>,<ul>,<li>) - Provide ARIA labels and roles for screen readers
- Ensure keyboard navigation works (Tab, Enter, Escape)
- Include focus states for all interactive elements
- Use sufficient color contrast (WCAG 2.1 AA)
Performance
- Lazy load dropdown content when possible
- Use CSS transitions instead of JavaScript animations
- Debounce scroll events for sticky navigation
- Minimize DOM manipulation
Mobile Considerations
- Touch targets should be at least 44x44 pixels
- Avoid hover-only interactions
- Use native scrolling for mobile menus
- Test on real devices, not just browser emulation
SEO
- Use descriptive link text
- Implement proper heading hierarchy
- Include breadcrumbs for better indexing
- Ensure all navigation links are crawlable