UI Library

AppShell

UI Library

Canonical shared UI primitives for the sibling apps. Each page demonstrates one component, its props, and its customization surface.

Prop Type Default Value Notes
childrenSnippet—
Main content block; any well-formed HTML elements (no expressions or handlers). Committing applies it.
classNamestring?'flex h-full min-h-0 flex-col bg-slate-950 text-slate-100'
Replaces the shell frame classes; unset, the component default renders inside the sized demo stage.
classNames{ header?: string; footer?: string; pane?: string; rightPane?: string; main?: string; splitter?: string }—
Extra classes for the shell regions as JSON (unset stays null for the built-in classes); the eye applies the map.
closeLabelstring?i18n 'appShell.closePane'
Floating backdrop aria label override.
footerSnippet—
Footer block; committing applies it, and the dialog edits its markup.
headerSnippet<[AppShellHeaderApi]>—
Header content; the fixed toggle-plus-title shape below documents the api callbacks (open, rightOpen, toggleLeft, toggleRight). The eye applies the header.
leftAppShellPaneConfig—
Left pane config as JSON: open, size, collapseMode, geometry, storageKey, and labels (unset stays null for the component default). The open/size callbacks ride the demo object internally; the eye applies the prop.
leftPaneSnippet—
Left pane content; the dialog edits its label text, and the eye applies the pane.
mode'auto' | 'docked' | 'floating''auto'
Auto docks beside content while the shell container is wide and floats above it when narrow (measured on the shell, not the viewport). Pinned docked stays an in-flow row at every width; rail panes float as an open-or-closed overlay below the breakpoint.
rightAppShellPaneConfig—
Right pane config as JSON: open, size, collapseMode, geometry, storageKey, and labels (unset stays null for the component default). Opening it applies the right-pane snippet; callbacks ride the demo object internally, and the eye applies the prop.
rightPaneSnippet—
Right pane content; enables the right drawer. The dialog edits its text, and the eye applies the pane (with the right config eye).
onLayoutModeChange(floating: boolean) => void——Fires with the resolved floating presentation.