Reference
AppShell
An app's frame: AppShell.Header across the top, a Sidebar down the start (a drawer on a narrow screen), the Router's page beside it, and an AppShell.Footer.
AppShell { … }
Since 6.2.0
No props to try.
Ledger
Dashboard
The page the router draws sits here.
Example
AppShell {
style { min-height: 320px; border: 1px solid $color-border }
AppShell.Header {
Row(justify: .between, align: .center) {
style { flex: 1 }
Text("Ledger").bold
Button("Sign out").sm
}
}
Sidebar {
style { height: auto }
Sidebar.Item(to: "/learn", icon: "book") { Text("Learn") }
Sidebar.Item(to: "/reference", icon: "list") { Text("Reference") }
}
Stack(gap: .sm) {
style { padding: 1rem }
Heading("Dashboard").h3
Text("The page the router draws sits here.")
}
AppShell.Footer { Text("© 2026 Ledger").muted.sm }
}
Props
This element takes no props of its own.
Attribute families: global, aria, data. Plus the 22 universal props every element takes: animate:, exit:, speed:, duration:, delay:, easing:, stagger:, on:, count:, shared:, class:, ref:, drag:, dragGroup:, dropValue:, dropAxis:, dropInside:, roving:, trapFocus:, mount:, update:, cleanup:.
Flags and cases
A flag is written after the parentheses with a dot: a Bool prop, or a case of one of the element's enum props. A case the enum lacks is an error with a hint.
No flags of its own.
Events
Every element also takes the props, the events and the attribute families listed on every element.
Slots
children
Parts
The parts of AppShell are written under its name, inside it. Each is described here, with what it takes.
AppShell.Header
The bar across the top.
AppShell.Header { … }
AppShell.Footer
The bar along the bottom.
AppShell.Footer { … }
Renders with the class wf-app-shell, stable across releases, so a stylesheet may target it.
Codes this can raise
These controls list the props' cases; the example below shows them written.