Navigation Layout

Navigation Layout is a foundational component used to layout an application that has side navigation. It is designed to be used in the content region of the Shell Layout component, but can be configured to work standalone.


OLSENSE Navigation Layout Overview
Region Name Slot Description
Navigation Region navigation The slot used for the navigation content.
Page Header Region page-header The slot used for the page header.
Page Footer Region page-footer The slot used for the page footer.
Content Region (default) The default slot used for the application layout’s content.
Navigation Region
Page Header Region
Content Region

A Page Header with the navigation button must be placed in the Page Header Region.

Page Title Primary Action

An Application Footer is provided by detault. You can inject a customized Application Footer using the page-footer slot.

Use the Navigation Layout component to build a page as the starting point for an application that contains side navigation.


OLSENSE Child Page Layout with Nav
import '@ods/components/web.navigation-layout';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
(default)The default slot used for content.
navigationThe slot used for the navigation content.
page-headerThe slot used for the page header content.
page-footerthe slot used to insert an page footer component.

Properties

Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.

Property/AttributeReflectsTypeDefault
outlines
booleanfalse
standalone
booleanfalse
copyrightText
copyright-text
string''

Parts

NameDescription
baseThe component's base wrapper.

Do

  • Use for applications that have side navigation.
  • Use a Side Nav component in the Navigation Region.
  • Use Page Header with Side Navigation Icon variant.
  • Use Page Layout to build child pages.

Dont

  • Use a left aligned Drawer that conflicts with Side Navigaton.
  • Use if your application DOES NOT have side navigation.
  • Use the Navigation Layout component to build content in the Content Region
  • Use the Shell Layout component to build content in the Content Region

Search