eQuantic.UIeQuantic.UI
Docs
Playground
GitHub
DocsNavigation
Drawer
View source
1 min read
A side panel of destinations, opened by an edge swipe or a menu button. 320 dp by default.
1
using eQuantic.UI.Components;
DEFAULT
Drawer content
Start edge
Usage
1
2
3
4
5
6
7
new Drawer(new NavigationList())
{
Open = _drawerOpen,
OnDismiss = () => SetState(() => _drawerOpen = false),
Edge = DrawerEdge.Start,
Width = 320,
}
API
Prop
Type
Default
Description
Content
VisualNode
Panel contents — usually a List of destinations.
Open
bool
false
Controlled visibility.
OnDismiss
Action?
null
Scrim tap, Escape, or back.
Edge
DrawerEdge
Start
Start or End; mirrors under RTL.
Width
float
320
Panel width.
States
State
Rendering
Closed
Off-canvas
Dragging
Follows the finger; the scrim fades proportionally
Open
Elevated panel over a scrim
Accessibility
Navigation-dialog semantics: focus trapped while open, Escape closes and returns focus to the menu button.
When to use
Six or more destinations, or account switching.
Avoid
A drawer and a bottom bar carrying the same destinations.
NOTEEvery dimension resolves through Sizing.*(SizeVariant) and the token scales — never a literal. Source: src/eQuantic.UI.Components/Drawer.cs.