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
Pick the NavConfig node by what the entry does:
Rules
Ownership
- The host renders
AppShellonce at the root. It owns the product list inNavRailand knows nothing about a product's routes. - The product owns its
NavConfig(next to its routes) and renders its ownRemoteShell. Never renderAppShell,TopHeaderorNavRailin a product. - A product in a host group renders content only. The host draws the group
RemoteShellfor two or more children.
Header and rail footer
- Settings is a
NavRailIteminNavRailFooter, never in the product panel or top header. - The user menu is the last
NavRailFooteritem: anavatarNavRailIteminDropdownMenuTrigger. - Notifications are a
NotificationCenterinTopHeaderActions, never a hand-made bell and popover. TopHeaderActionsorder: search,TopHeaderSeparator, tenant switcher,ChatTrigger,NotificationCenter, help.
URL is the only state
- Pass the router's pathname to
pathnameandonNavigateto the router, always together. - If the router has its own
basepath, omitbasePathonRemoteShell. - The active item, drill level and trail come from
pathname. Never keep them in state. - Exactly one
NavRailItemisactive, from the first URL segment: Home on/, the product on/edge/…, Settings (inNavRailFooter) 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. AppShellRemoteowns the rounded surface and border. Never restyle it or add aw-*to the shell regions.- Page gutters are 24px, owned by
Pageparts. Never padRemoteShellContentorAppShellRemote.
Scroll
- The shell is
h-screen. Never setoverfloworheightonhtmlorbody. - The rail, the panel and
RemoteShellContentscroll on their own. A table page uses<Page fullSize fixedHeight>so onlyPageContentscrolls.
Breadcrumbs
- In a product, the trail is
RemoteShellBreadcrumb: product, groups as text, drills as a scope switcher, current page. Never also putBreadcrumbsinPageHeader. RemoteShellBreadcrumbends at the lastNavConfigentry. Past it (a record name), render your ownBreadcrumbsfromuseRemoteShellContext(); a grouped product reports them through@wallarm/sdkonBreadcrumbChange.- Trail-row controls are
RemoteShellBreadcrumbchildren. - Home and cross-product pages have no trail.
Layering
- In-shell sticky layers are
z-10; overlays portal above the shell. Never addz-*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.