Skip to content

Top Navbar Layout

Layout

An app shell with a sticky top navbar and a scrolling content area, for apps without a sidebar.

atlas-top-navbar-layout

Examples

App shell

A sticky navbar with brand, links and actions above a scrolling content area. Boxed here for the preview.

Page content goes here.

Centred content and a dark bar

contentClass styles the main area, here a centred max width. navbarVariant sets the bar's background, like atlas-navbar 's variant .

Release notes

The content stays centred at 42rem however wide the window gets.

API

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

AtlasTopNavbarLayoutComponent atlas-top-navbar-layout

InputTypeDefaultDescription
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 .