For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/patterns/app-layout.md.

Application layout

Components: AppShell, AppShellHeader, AppShellRail, AppShellRemote, AppShellAside, TopHeader, TopHeaderLogo, TopHeaderActions

+23 more

TopHeaderSeparator, NotificationCenter, NotificationCenterTrigger, ChatTrigger, DropdownMenu, NavRail, NavRailBody, NavRailItem, NavRailSeparator, NavRailFooter, NavRailSkeleton, RemoteShell, RemoteShellPanel, RemoteShellBreadcrumb, RemoteShellContent, Page, PageHeader, PageTitle, PageContent, Breadcrumbs, UtilityPage, SplashScreen, Skeleton

Two shells: AppShell (the host's chrome) and RemoteShell (a product's chrome, built from a NavConfig).

When to use

NeedUseNot
The console frame: top bar, product rail, content surfaceAppShell › AppShellHeader + AppShellRail + AppShellRemote, rendered once by the hostAn AppShell per page, or a hand-made grid
A product with its own menuRemoteShell config={navConfig} › RemoteShellPanel + RemoteShellBreadcrumb + RemoteShellContent › PageHand-built panel markup, or AppShell in the product
A product inside a host groupContent only; the host wraps the group in one RemoteShellA second RemoteShell in the product
A host-local section (Settings)RemoteShell in the host route, with its own NavConfigA remote for it
A product with one pageRemoteShell without RemoteShellPanel, or content onlyAn empty NavConfig
Home or a cross-product pagePage directly in AppShellRemoteRemoteShell with an empty config
The app cannot render (unknown URL, 500, offline, no tenant access)UtilityPage instead of the shellUtilityPage inside AppShellRemote
Cold startSplashScreen, then <AppShell reveal>A Loader on a blank page

Pick the NavConfig node by what the entry does:

EntryNodeNot
A pagetype: 'link' with path (a bare segment, no slash)A group with one child
Nested pages with no page of their owntype: 'group'; defaultExpanded on the one holding the usual pagedrill
Pick an entity, then its sub-pagestype: 'drill' with param, entities and childrenA Select in the page header
A label over a run of entriestype: 'section-header'A disabled link
A line between entriesdividerAfter: true on the entry aboveAn empty link

Rules

Ownership

  • The host renders AppShell once at the root. It owns the product list in NavRail and knows nothing about a product's routes.
  • The product owns its NavConfig (next to its routes) and renders its own RemoteShell. Never render AppShell, TopHeader or NavRail in a product.
  • A product in a host group renders content only. The host draws the group RemoteShell for two or more children.

Header and rail footer

  • Settings is a NavRailItem in NavRailFooter, never in the product panel or top header.
  • The user menu is the last NavRailFooter item: an avatar NavRailItem in DropdownMenuTrigger.
  • Notifications are a NotificationCenter in TopHeaderActions, never a hand-made bell and popover.
  • TopHeaderActions order: search, TopHeaderSeparator, tenant switcher, ChatTrigger, NotificationCenter, help.

URL is the only state

  • Pass the router's pathname to pathname and onNavigate to the router, always together.
  • If the router has its own basepath, omit basePath on RemoteShell.
  • The active item, drill level and trail come from pathname. Never keep them in state.
  • Exactly one NavRailItem is active, from the first URL segment: Home on /, the product on /edge/…, Settings (in NavRailFooter) on /settings/….

Sizes (built in; do not override)

  • Top header 36px. Rail 48px collapsed, 184px expanded, 78px compact. Product panel 216px, 164–256px with resizable. Rail and panel items 32px.
  • AppShellRemote owns the rounded surface and border. Never restyle it or add a w-* to the shell regions.
  • Page gutters are 24px, owned by Page parts. Never pad RemoteShellContent or AppShellRemote.

Scroll

  • The shell is h-screen. Never set overflow or height on html or body.
  • The rail, the panel and RemoteShellContent scroll on their own. A table page uses <Page fullSize fixedHeight> so only PageContent scrolls.

Breadcrumbs

  • In a product, the trail is RemoteShellBreadcrumb: product, groups as text, drills as a scope switcher, current page. Never also put Breadcrumbs in PageHeader.
  • RemoteShellBreadcrumb ends at the last NavConfig entry. Past it (a record name), render your own Breadcrumbs from useRemoteShellContext(); a grouped product reports them through @wallarm/sdk onBreadcrumbChange.
  • Trail-row controls are RemoteShellBreadcrumb children.
  • Home and cross-product pages have no trail.

Layering

  • In-shell sticky layers are z-10; overlays portal above the shell. Never add z-* to a shell region. See Layering.

Examples

A standalone product: header actions, Settings and the user menu in the rail footer, a NavConfig panel, trail and page.

A standalone product at /edge/api-sessions. The host renders AppShell with the product list in NavRail; the product renders RemoteShell with its own NavConfig, and its page goes in RemoteShellContent. The panel, the active item and the trail all come from pathname.

Home: a page straight in AppShellRemote, expanded rail, no panel.

Home is a host page, not a product: Page goes straight into AppShellRemote, with no RemoteShell, no panel and no breadcrumbs. The rail is expanded at the top level.

Notifications, open from the header bell.

The notifications inbox open from the bell in TopHeaderActions: unread count on the bell, New and Read tabs. The app owns the list and the unread count.

The user menu, open from the rail's avatar item.

The user menu open from the avatar item at the foot of NavRailFooter: profile settings, appearance, sidebar mode and sign out.

A product inside a host group: the host's group shell around the product's page.

A product inside a host group. The host renders one group RemoteShell with a link per child product; the child renders its page only, with no shell of its own.

Settings: a host route rendering RemoteShell, with no breadcrumbs in PageHeader.

Settings is a host route that renders RemoteShell itself. The trail comes from RemoteShellBreadcrumb, so PageHeader holds no Breadcrumbs.

A drill node: the entity level, the back button and the scope switcher.

A drill node at /edge/data-planes/production/services: the panel shows the entity level with a back button, and the trail gets a scope switcher for the entity.

Loading: rail and header skeletons, product panel rows and a content loader.

While the host loads the user and the product list, skeletons sit where the header actions and rail items land. While a product loads, its panel shows skeleton rows under the product name and its content shows a loader.

States

StateShowExample component
Cold startSplash, then the shellSplashScreen, AppShell reveal
Host data loadingSkeletons where header actions and rail items landSkeleton, NavRailSkeleton
Product bundle loadingSplash in AppShellRemoteSplashScreen
Product data loadingProduct name and skeleton rows in the panel; loader in contentRemoteShellPanel isLoading, RemoteShellContent isLoading
Page data loadingReal PageHeader, skeletons in contentTable isLoading
Page or request failedShell stays; your message in PageContentApp-rendered
Product bundle failedShell stays; your message in AppShellRemoteApp-rendered
Unknown URL, server down, offline, no tenant accessReplace the whole shellUtilityPage
No access to one product or pageLeave it out of the rail or NavConfigNavConfig

What your app owns

ConcernRule
Router wiringpathname from the router, onNavigate={to => navigate({ to })}
Rail modeStore the user's preference; "adaptive" (expanded on Home, collapsed in a product) is your logic
Product listFrom the microfrontends API; rail items with href, label, icon and a shortcut chord
Recent and account menusYour DropdownMenu compositions
NotificationsData, unread count, mark-read logic, the preferences page
PermissionsLeave forbidden products and entries out of the rail and NavConfig
ErrorsAn error boundary in AppShellRemote and in the product's content
Prefetch on hoveronPointerOver and onFocus on RemoteShellPanel
Panel widthresizable keeps it in memory only; it resets on remount
Drill labelsentities are static; pass fresh ones in NavConfig when data changes
Test IDsPanel items and crumbs have none; use roles inside {shell}--panel and {shell}--breadcrumb