Skip to content

Sidenav Layout

Layout

An enterprise app shell that combines a top navbar with a left sidebar navigation panel. On desktop, the sidebar is a persistent docked panel with its own scroll context. Below 768px, it collapses to a hamburger-triggered overlay drawer.

atlas-sidenav-layout

Examples

App shell

A navbar, a sidebar with its own scroll, and the content area. Below 768px the sidebar becomes a drawer opened by the mobile trigger. This preview is boxed; in an app it fills the viewport.

Dashboard

The main content scrolls independently of the sidebar.

sidenavWidth sets the sidebar width, sidenavTitle its heading (and its panel name on mobile), navbarVariant the top bar colour and contentClass the main area.

Users

A narrow sidebar leaves more room for tables.

API

Generated from the library source, so it always matches the code.

AtlasSidenavLayoutComponent atlas-sidenav-layout

InputTypeDefaultDescription
sidenavWidth string'16rem' Width of the sidebar, any CSS length.
sidenavTitle string | undefinedundefined Sidebar heading (and its panel's name on mobile). Defaults to the configured sidenavLayout.title .
contentClass string'' Classes for the main content area, e.g. a max width with mx-auto .
navbarVariant NavbarVariant'default' Background of the top bar; see atlas-navbar variant .