Component libraryDashboard layout
Dashboard layout
ProA responsive semantic dashboard shell with composable header, navigation, main content, and an in-flow mobile disclosure.
npx shadcn@latest add @tidal-pro/dashboard-layoutInstallation
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/dashboard-layout.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
TidalDashboardLayout requires title, navigation and children. Optional decorative noninteractive mark, native brandHref including an empty destination with brandProps/ref, header and navigationFooter ReactNode slots, navigationLabel, skipLabel, mobileNavigationLabel, controlled mobileNavigationOpen/onMobileNavigationOpenChange or uncontrolled defaultMobileNavigationOpen. Root, header, navigation and main forward native attributes and refs. The main target defaults to tabIndex -1 for skip-link focus and preserves an explicit caller tabIndex. The named container switches below720px to an in-flow disclosure; Escape closes it and returns focus, while resize moves focus away from any sidebar control that becomes hidden. TidalDashboardNavGroup creates labelled navigation sections. TidalDashboardNavLink requires href and label, preserves native anchor attributes/ref/modified clicks, supports active aria-current, decorative icon and visual badge. TidalDashboardNavAction forwards native button attributes/ref/type(defaultbutton), disabled and prevented handlers, with active aria-pressed and closeOnSelect(defaulttrue). All owned controls are44px, labels wrap, RTL uses logical layout, motion is finite and reduced motion is static. Consumers own routing, selected page, page-focus policy, data, requests, storage and every action result.
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.