Component libraryNavigation bar
Navigation bar
ProResponsive SaaS navigation with native links, actions and an in-flow mobile disclosure.
npx shadcn@latest add @tidal-pro/navigation-barInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/navigation-bar.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Root forwards native header attributes/ref. Required title and navigation. Optional mark, brandHref/brandRef/brandProps, actions, navigationLabel, controlled open/onOpenChange or defaultOpen. The root measures its own border box with ResizeObserver and switches to an in-flow nonmodal disclosure below 720px; mobile Escape closes after an unprevented consumer key handler and returns focus when a navigation item owns focus. Same-tab unmodified links close mobile navigation while modifiers, targets, download and prevented events preserve native behavior. TidalNavigationBarGroup forwards div/ref/attributes and may expose a literal group label. TidalNavigationBarLink forwards native anchor attributes/ref/events, requires label and href, supports decorative icon, visual-only badge and active aria-current=page. TidalNavigationBarAction forwards native button attributes/ref/events/type(default button)/disabled, supports label/icon/badge/active aria-pressed and closeOnSelect(default true). Consumer owns destinations, active state, action behavior, data, routing and page focus policy. Native controls are 44px, labels wrap, motion is finite and reduced motion is honored. No requests, storage, global shortcuts, portals or overlay are introduced.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.