Navigation
Comprehensive navigation components for web applications. Includes headers, breadcrumbs, pagination, tabs, and sidebar navigation patterns.
Header / Navbar
The sticky header component provides brand identity, navigation links, and action buttons. Use hu-header for the wrapper, hu-header-inner for the flex container, and hu-header-brand for the logo area.
Basic Header
<header class="hu-header">
<div class="hu-header-inner">
<a href="#" class="hu-header-brand">Nimbus</a>
<nav class="hu-header-nav">
<a href="#" class="hu-header-nav-link hu-active">Home</a>
<a href="#" class="hu-header-nav-link">Features</a>
<a href="#" class="hu-header-nav-link">Pricing</a>
<a href="#" class="hu-header-nav-link">Docs</a>
</nav>
<div class="hu-header-actions">
<a href="#" class="hu-btn hu-btn-ghost">Sign In</a>
<a href="#" class="hu-btn hu-btn-primary">Get Started</a>
</div>
</div>
</header>
Header with Theme Toggle
<header class="hu-header">
<div class="hu-header-inner">
<a href="#" class="hu-header-brand">Nimbus</a>
<nav class="hu-header-nav">
<a href="#" class="hu-header-nav-link">Dashboard</a>
<a href="#" class="hu-header-nav-link hu-active">Services</a>
<a href="#" class="hu-header-nav-link">Domains</a>
</nav>
<div class="hu-header-actions">
<button class="hu-theme-toggle" aria-label="Toggle theme">
<span>☀</span>
</button>
<a href="#" class="hu-btn hu-btn-ghost">Support</a>
<a href="#" class="hu-btn hu-btn-primary">Upgrade</a>
</div>
</div>
</header>
Breadcrumb
Breadcrumbs show the current page location within a navigational hierarchy. Use hu-breadcrumb for the container and hu-breadcrumb-item for each level.
Basic Breadcrumb
<nav class="hu-breadcrumb">
<a href="#" class="hu-breadcrumb-item">Home</a>
<a href="#" class="hu-breadcrumb-item">Components</a>
<span class="hu-breadcrumb-item hu-active">Navigation</span>
</nav>
Deep Breadcrumb
<nav class="hu-breadcrumb">
<a href="#" class="hu-breadcrumb-item">Dashboard</a>
<a href="#" class="hu-breadcrumb-item">Services</a>
<a href="#" class="hu-breadcrumb-item">VPS Hosting</a>
<a href="#" class="hu-breadcrumb-item">Management</a>
<span class="hu-breadcrumb-item hu-active">Settings</span>
</nav>
Pagination
Pagination allows users to navigate through pages of content. Use hu-pagination for the container, hu-pagination-item for each page link, and hu-active / hu-disabled modifiers.
Basic Pagination
<nav class="hu-pagination">
<a href="#" class="hu-pagination-item hu-disabled">← Prev</a>
<a href="#" class="hu-pagination-item hu-active">1</a>
<a href="#" class="hu-pagination-item">2</a>
<a href="#" class="hu-pagination-item">3</a>
<a href="#" class="hu-pagination-item">4</a>
<a href="#" class="hu-pagination-item">5</a>
<a href="#" class="hu-pagination-item">Next →</a>
</nav>
End of Pages
<nav class="hu-pagination">
<a href="#" class="hu-pagination-item">← Prev</a>
<a href="#" class="hu-pagination-item">1</a>
<a href="#" class="hu-pagination-item">2</a>
<a href="#" class="hu-pagination-item">3</a>
<a href="#" class="hu-pagination-item hu-active">4</a>
<a href="#" class="hu-pagination-item hu-disabled">Next →</a>
</nav>
Tabs
Tabs organize content into multiple panels. Use hu-tabs for the container, hu-tab for each tab trigger, and hu-tab-content with hu-tab-pane for the panels. Link tabs to panes using data-tab attributes.
Basic Tabs
This is the overview content. Our VPS hosting plans come with guaranteed resources, full root access, and 24/7 support.
Technical specifications: 2 vCPU, 4GB RAM, 80GB SSD, 4TB Bandwidth, 1Gbps Port.
Customer reviews: "Excellent performance and uptime!" - 4.8/5 average rating.
<div class="hu-tabs">
<button class="hu-tab hu-active" data-tab="overview">Overview</button>
<button class="hu-tab" data-tab="specs">Specifications</button>
<button class="hu-tab" data-tab="reviews">Reviews</button>
</div>
<div class="hu-tab-content">
<div class="hu-tab-pane hu-active" id="overview">
<p>Overview content here...</p>
</div>
<div class="hu-tab-pane" id="specs">
<p>Specifications content here...</p>
</div>
<div class="hu-tab-pane" id="reviews">
<p>Reviews content here...</p>
</div>
</div>
Sidebar Navigation
Sidebar navigation provides a persistent navigation structure for documentation and admin panels. Use hu-sidebar with nested hu-sidebar-section and hu-sidebar-nav elements.
Basic Sidebar
<div class="hu-sidebar">
<nav class="hu-sidebar-nav">
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Getting Started</div>
<a href="#" class="hu-sidebar-nav-link">Introduction</a>
<a href="#" class="hu-sidebar-nav-link hu-active">Installation</a>
<a href="#" class="hu-sidebar-nav-link">Configuration</a>
</div>
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Components</div>
<a href="#" class="hu-sidebar-nav-link">Buttons</a>
<a href="#" class="hu-sidebar-nav-link">Forms</a>
<a href="#" class="hu-sidebar-nav-link">Tables</a>
</div>
</nav>
</div>
Sidebar with Nested Links
<div class="hu-sidebar">
<nav class="hu-sidebar-nav">
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Hosting Plans</div>
<a href="#" class="hu-sidebar-nav-link">Shared Hosting</a>
<a href="#" class="hu-sidebar-nav-link hu-active">VPS Hosting</a>
<div class="hu-sidebar-subnav">
<a href="#" class="hu-sidebar-nav-link">Linux VPS</a>
<a href="#" class="hu-sidebar-nav-link">Windows VPS</a>
<a href="#" class="hu-sidebar-nav-link">Managed VPS</a>
</div>
<a href="#" class="hu-sidebar-nav-link">Dedicated Servers</a>
<a href="#" class="hu-sidebar-nav-link">Cloud Hosting</a>
</div>
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Resources</div>
<a href="#" class="hu-sidebar-nav-link">Documentation</a>
<a href="#" class="hu-sidebar-nav-link">API Reference</a>
<a href="#" class="hu-sidebar-nav-link">Status Page</a>
</div>
</nav>
</div>
Real-World Examples
Real-world navigation patterns used in web applications. These examples show how to combine multiple navigation components for common application UIs.
Main Site Navbar
Client Area Navigation
My Services
Manage your active hosting services, domains, and subscriptions.
<div class="hu-layout">
<aside class="hu-sidebar">
<nav class="hu-sidebar-nav">
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Client Area</div>
<a href="#" class="hu-sidebar-nav-link">Dashboard</a>
<a href="#" class="hu-sidebar-nav-link hu-active">Services</a>
<a href="#" class="hu-sidebar-nav-link">Domains</a>
<a href="#" class="hu-sidebar-nav-link">Billing</a>
<a href="#" class="hu-sidebar-nav-link">Support</a>
<a href="#" class="hu-sidebar-nav-link">Affiliates</a>
</div>
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Account</div>
<a href="#" class="hu-sidebar-nav-link">My Profile</a>
<a href="#" class="hu-sidebar-nav-link">Notifications</a>
<a href="#" class="hu-sidebar-nav-link">Security</a>
</div>
</nav>
</aside>
<main class="hu-main">
<nav class="hu-breadcrumb">
<a href="#" class="hu-breadcrumb-item">Client Area</a>
<span class="hu-breadcrumb-item hu-active">Services</span>
</nav>
<h3>My Services</h3>
<p>Manage your active hosting services...</p>
</main>
</div>
Documentation Sidebar
<div class="hu-sidebar">
<nav class="hu-sidebar-nav">
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Getting Started</div>
<a href="#" class="hu-sidebar-nav-link">Introduction</a>
<a href="#" class="hu-sidebar-nav-link">Installation</a>
<a href="#" class="hu-sidebar-nav-link">Quick Start</a>
</div>
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Core Concepts</div>
<a href="#" class="hu-sidebar-nav-link">Theming</a>
<a href="#" class="hu-sidebar-nav-link hu-active">Components</a>
<div class="hu-sidebar-subnav">
<a href="#" class="hu-sidebar-nav-link">Buttons</a>
<a href="#" class="hu-sidebar-nav-link">Cards</a>
<a href="#" class="hu-sidebar-nav-link">Forms</a>
<a href="#" class="hu-sidebar-nav-link hu-active">Navigation</a>
<a href="#" class="hu-sidebar-nav-link">Tables</a>
</div>
<a href="#" class="hu-sidebar-nav-link">Layout</a>
<a href="#" class="hu-sidebar-nav-link">Utilities</a>
</div>
<div class="hu-sidebar-section">
<div class="hu-sidebar-title">Advanced</div>
<a href="#" class="hu-sidebar-nav-link">Customization</a>
<a href="#" class="hu-sidebar-nav-link">JavaScript</a>
<a href="#" class="hu-sidebar-nav-link">Plugins</a>
</div>
</nav>
</div>
API Reference
Complete reference for all navigation component classes and their modifiers.
Header
| Class | Description |
|---|---|
hu-header |
Sticky header container |
hu-header-inner |
Flex container for header content |
hu-header-brand |
Brand logo and name |
hu-header-nav |
Navigation links container |
hu-header-nav-link |
Individual navigation link |
hu-header-actions |
Action buttons container |
Breadcrumb
| Class | Description |
|---|---|
hu-breadcrumb |
Breadcrumb container |
hu-breadcrumb-item |
Individual breadcrumb level |
hu-active |
Current page indicator |
Pagination
| Class | Description |
|---|---|
hu-pagination |
Pagination container |
hu-pagination-item |
Individual page link |
hu-active |
Current page state |
hu-disabled |
Disabled page state |
Tabs
| Class | Description |
|---|---|
hu-tabs |
Tab triggers container |
hu-tab |
Individual tab trigger button |
hu-tab-content |
Tab panels container |
hu-tab-pane |
Individual tab panel |
data-tab |
Links tab trigger to panel ID |
Sidebar
| Class | Description |
|---|---|
hu-sidebar |
Sidebar container |
hu-sidebar-section |
Navigation section group |
hu-sidebar-title |
Section heading |
hu-sidebar-nav |
Navigation links container |
hu-sidebar-nav-link |
Individual navigation link |
hu-sidebar-subnav |
Nested navigation group |
JavaScript Data Attributes
| Attribute | Component | Description |
|---|---|---|
data-tab |
Tabs | Links tab trigger to content pane by ID |
data-theme-toggle |
Header | Enables theme switching on button click |
data-sidebar |
Body | Enables sidebar layout mode |
data-sidebar-overlay |
Sidebar | Enables mobile overlay for sidebar |
data-copy |
Code blocks | Enables copy-to-clipboard functionality |