Nav Header is the primary top navigation bar, supporting default, menu, and compact menu layouts with full mobile and RTL support.
Loading demo: nav-header-real-world
npx sdaia-ui@latest add nav-header
import { NavHeader } from '@/components/ui/NavHeader';<NavHeader type="default" />Standard top navigation header with logo and actions.
Loading demo: nav-header-default
Use surface="glass" to enable Glass Effect
Loading demo: nav-header-glass
Nav header with a full navigation menu expanded.
Loading demo: nav-header-menu
Prop | Type | Default | Required |
|---|---|---|---|
type | 'default' | 'menu' | 'menu-compact' | 'default' | optional |
mobile | boolean | - | optional |
menuOpen | boolean | false | optional |
onOpenChange | (open: boolean) => void | - | optional |
logo | ReactNode | - | optional |
items | ReactNode[] | - | optional |
search | ReactNode | - | optional |
actions | ReactNode | - | optional |
menuContent | ReactNode | - | optional |
mobileFooter | ReactNode | - | optional |
className | string | - | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Full header: logo, menu items, search and action buttons, content up to 1440px wide. |
| Tablet (768–1279px) | The full header from 768px. Below 768px it switches automatically to the compact header with a menu button. |
| Phone (under 768px) | Compact header with a menu button. Set mobile to force either layout. |