Drawer

Drawer presents navigation or supporting content in a side panel with controlled state.

Playground

This playground shows a navigation drawer with prepend, main content, and append regions. You can compare side, width, appearance, and positioning modes.

Positioning difference

In normal mode, the drawer participates in layout. In absolute mode, it overlays content.

Loading preview…

API reference

Reference the verified public props for EDrawer. Its event and slots are summarized after the table.

PropertyTypeDefault
modelValuebooleanfalse

Controls whether the drawer is open and supports two-way binding with v-model.

navbooleanfalse

Renders the drawer root as a semantic nav element instead of an aside.

rightbooleanfalse

Positions the drawer on the right side instead of the left.

widthstring | number16

Sets the drawer width as a number or any valid CSS size.

widthUnitstringrem

Supplies the CSS unit used when width is numeric or a numeric string.

floatingbooleanfalse

Insets the drawer surface and applies the floating background, radius, and optional elevation.

appearance'default' | 'transparent'default

Selects the default surface or a transparent drawer appearance.

elevationElevationLevelsm

Applies a framework shadow when the drawer is absolute or floating.

absolutebooleanfalse

Positions the drawer absolutely and activates temporary overlay behavior while open.

fixedbooleanfalse

Applies the fixed-position drawer modifier.

autoFocusbooleantrue

Moves focus into the drawer when temporary overlay behavior becomes active.

restoreFocusbooleantrue

Returns focus to the previously focused element when a temporary drawer closes.

disabledbooleanfalse

Applies the disabled state class to the drawer root.

devModebooleanfalse

Disables the automatic breakpoint fallback so absolute behavior follows only the absolute prop.

Event

EDrawer emits update:modelValue when its open state changes.

Slots

The prepend and append slots frame the scrollable default slot with persistent content regions.