# Navigation Menu > Top navigation bar with new NavItem, NavList, NavTrigger, and NavContent subcomponents. Source: https://shellui.dev/docs/v0.3/components/navigation/navigation-menu v0.3.0 adds `NavList`, `NavItem`, `NavTrigger`, and `NavContent` subcomponents for a fully compositional navigation pattern. ## What changed from v0.2.x | v0.2.1 | v0.3.0 | |--------|-------------| | `` items | `......` | | Title string parameter | `NavTrigger` takes any `RenderFragment` | ## Installation ```bash shellui add navigation-menu nav-item nav-list nav-trigger nav-content ``` ## Usage ### Basic navigation with dropdowns ```razor @* Height leaves room for the open panel inside the preview. *@
``` ### Links next to dropdowns Plain links sit in the `NavList` beside the `NavItem` dropdowns. ```razor @* Height leaves room for the open panel inside the preview. *@
``` ### Header nav bar A site header with a logo, the menu and actions. It uses container queries, so it adapts to its own width: on a narrow screen the logo text and extra links drop out and the panel becomes one column. `NavContent` is 14rem wide by default; a `class` attribute replaces its classes, which is how the wider two-column panel is made, so keep the positioning classes when you set one. ```razor @* Container queries (@@md:, @@2xl:) size the header to its own width; the height leaves room for the open panel. *@
S Components @foreach (var (title, text, href) in categories) {
@title
@text
}
@code { private const string PanelClass = "absolute -left-9 top-full mt-1 grid w-56 gap-1 rounded-md border border-border bg-popover p-2 shadow-lg @md:left-0 @md:w-80 @md:grid-cols-2"; private readonly (string Title, string Text, string Href)[] categories = [ ("Form", "Inputs and controls", "/docs/components/form"), ("Layout", "Cards, dialogs, sheets", "/docs/components/layout"), ("Navigation", "Menus, tabs, breadcrumbs", "/docs/components/navigation"), ("Advanced", "Charts, calendar, chat", "/docs/components/advanced"), ]; } ``` ## API Reference ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | `NavList` | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | `NavItem` children | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | `NavTrigger` + `NavContent` | | `ClassName` | `string` | `""` | Additional CSS classes | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Trigger button label | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Dropdown panel content |