Navbar
Sticky top navigation bar with backdrop blur
The Navbar component provides a responsive sticky navigation bar that sits at the top of the viewport. It includes backdrop blur for a modern glass effect and adapts to mobile screens.
Installation
bash
shellui add navbar
Basic Usage
With Logo and Links
With Mobile Menu
Combine with a Drawer for responsive mobile navigation:
API Reference
| Property | Type | Default | Description |
|---|---|---|---|
ChildContent |
RenderFragment |
null |
Navbar content (logo, links, actions) |
ClassName |
string? |
null |
Additional CSS classes |
Default Styling
The Navbar renders as a sticky top bar with:
position: sticky; top: 0; z-index: 50- Backdrop blur (
backdrop-blur-lg) - Border bottom
- Responsive padding
Accessibility
The Navbar component includes:
- Semantic
headerandnavelements - Keyboard navigable links
- Skip-to-content link support
- Mobile menu toggle with
aria-expanded - Proper landmark roles for screen readers