Skip to content

Drawer

Overlay

A sliding panel overlay for detail views, quick-edit forms, or mobile-friendly actions. Supports right and bottom positions with backdrop, focus trapping, and escape-to-close.

atlas-drawer

Examples

Detail panel

A panel that slides in from a side, with a backdrop; handle (closed) for Escape and backdrop clicks.

Bottom sheet and start/end

position="bottom" slides up from the bottom edge with a height ; end follows the text direction (left under RTL) where right stays physical.

Filter panel

A form in a drawer: changes stay local until Apply. Focus moves into the drawer when it opens and back to the trigger when it closes.

Showing: Open

API

Generated from the library source, so it always matches the code.

AtlasDrawerComponent atlas-drawer

InputTypeDefaultDescription
open booleanfalse Whether the drawer is open
position DrawerPosition'right' Position of the drawer
width string'24rem' Width when position is 'right'
height string'50vh' Height when position is 'bottom'
hasBackdrop booleantrue Whether a dimming backdrop is shown while open; clicking it emits closed
ariaLabel string | undefinedundefined Aria label for the drawer panel
class string'' Additional CSS classes for the panel
OutputPayloadDescription
closedvoid Emitted when the drawer requests to close

Types

DrawerPosition

end is the inline-end side (right in LTR, left in RTL); right stays physical.

type DrawerPosition = 'right' | 'end' | 'bottom'