- Components
- Navigation
App Bar
Sticky, blurred page bar with logo, nav, search and actions slots. The nav slides one highlight between links and rests on the active one. Under md the nav becomes a menu button that opens a sheet; under sm the search wraps to its own row.
Installation#
npx shadcn add @ortaui/app-barExamples#
Full#
ortaui
Page content. Scroll: the bar stays, blurred over the page.
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
Line 11
Line 12
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| logo / nav / search / actions | ReactNode | - | Slots. Every one is optional. |
| AppBarNav | component | - | Wrap AppBarNavLinks. Renders them inline and, under md, in a sheet. menuLabel names the menu button. |
| AppBarNavLink active | boolean | - | Marks the current page (aria-current, highlight rests here). Accepts render for router links. |
| className | string | - | Merged with the component classes via cn(). |