Drawer

Directional drawer with focus management and optional reusable Turbo Frame host for stacked instances

View documentation

Directions

direction is physical — up, right, down, left — and does not mirror in RTL. Side drawers default to 75vw capped at 24rem; vertical ones size to their content.

Size, dismissal and focus

size takes any CSS length. Turning off close-on-escape and close-on-click-outside leaves drawer.close as the only way out — deliberate, and worth using sparingly.