Interface: AppShellProps
Defined in: components/AppShell/AppShell.tsx:56
Props for the AppShell component.
Extends
Omit<React.HTMLAttributes<HTMLDivElement>,"style"|"className">
Properties
aside?
optionalaside?:ReactNode
Defined in: components/AppShell/AppShell.tsx:65
End-side panel (inspector). Omit for no end aside.
asideLabel?
optionalasideLabel?:string
Defined in: components/AppShell/AppShell.tsx:79
Accessible name for the end aside landmark (aria-label).
asideWidth?
optionalasideWidth?:"sm"|"md"|"lg"
Defined in: components/AppShell/AppShell.tsx:75
Width of the end aside, from the named scale.
Default
'sm'
children?
optionalchildren?:ReactNode
Defined in: components/AppShell/AppShell.tsx:100
The main region — always takes the remaining space and scrolls.
Overrides
Omit.children
header?
optionalheader?:ReactNode
Defined in: components/AppShell/AppShell.tsx:61
Top bar, spanning the full width above the body. Omit for no header.
isSidebarOpen?
optionalisSidebarOpen?:boolean
Defined in: components/AppShell/AppShell.tsx:96
Whether a temporary sidebar is open. Omit to let the shell own it.
onSidebarOpenChange?
optionalonSidebarOpenChange?: (isOpen) =>void
Defined in: components/AppShell/AppShell.tsx:98
Called when a temporary sidebar opens or closes.
Parameters
| Parameter | Type |
|---|---|
isOpen | boolean |
Returns
void
sidebar?
optionalsidebar?:ReactNode
Defined in: components/AppShell/AppShell.tsx:63
Start-side panel (navigator). Omit for no start sidebar.
sidebarLabel?
optionalsidebarLabel?:string
Defined in: components/AppShell/AppShell.tsx:77
Accessible name for the start sidebar landmark (aria-label).
sidebarTriggerLabel?
optionalsidebarTriggerLabel?:string
Defined in: components/AppShell/AppShell.tsx:94
Accessible name for the button that opens a temporary sidebar — e.g.
"Open navigation". Required for temporary to take effect.
sidebarVariant?
optionalsidebarVariant?:AppShellSidebarVariant
Defined in: components/AppShell/AppShell.tsx:89
How the start sidebar occupies the frame.
temporary needs sidebarTriggerLabel to name the button that reveals
the panel — without a name the sidebar would be unreachable, so the shell
stays permanent rather than hide it (an English default is forbidden by
ADR-001, and a scrolling shell beats a lost one).
Default
'permanent'
sidebarWidth?
optionalsidebarWidth?:"sm"|"md"|"lg"
Defined in: components/AppShell/AppShell.tsx:70
Width of the start sidebar, from the named scale.
Default
'sm'