Shell Layout

Shell Layout is a foundational component used to layout the shell of an application. It is the UI chrome that surrounds all applications.

Region Name Slot Description
UI Shell Header shell-header Region used to place the Application Bar component.
UI Shell Main shell-main Region used to place an application using Application View
UI Shell Banner Region
UI Shell Header Region
UI Shell Main Region

The Application Shell contains an Application Bar used for branding and cross-platform functionality. Layouts, such as Page and Navigation are placed inside the Content Region of the Shell Layout.

When adopting Module Federation for your application on the OLYSENSE Platform, the Application Shell and Application Bar are managed by the host application. You should use Page Layouts to build Page Views as the starting point for your application.

OLSENSE Application Shell View
import '@ods/components/web.shell-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
shell-headerThe slot used to render the shells Application Bar
shell-mainThe slot used to render the shells main content or micro application

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

Parts

NameDescription
baseThe component's base wrapper.

Do

  • Use Application Views within the Content Region of the Application Shell
  • Use the appropriate Application Bar for your application and user type

Dont

  • Collapse or hide the Application Bar
  • Change the Application Bar between views

Search