Skip to content

App shell usage guidelines

The app shell is a layout component that provides the foundational structure for applications. It creates a consistent layout that accommodates header, navigation, and main content areas.

  • As the root layout component for applications to provide consistent structure.
  • When you need a responsive layout that adapts to different screen sizes.
  • To create applications with persistent navigation and header elements.

The basic app shell provides a simple layout structure with a header and main content area.

App shell can include a side nav to provide navigation throughout the application. Side nav is preferred for applications with a large number of pages.

When used inside app shell, responsive behavior is handled automatically. On smaller screens, the side nav collapses to an overlay that can be toggled open/closed by the navigation toggle in the app header.

Side nav can be configured to collapse to an icon-only rail on large viewports. See collapsible in the side nav documentation for more details.

The app shell can include a top nav for a horizontal navigation bar between related sections or pages.