A bottom-sheet drawer with swipe-to-dismiss, focus trap, scroll lock, and grab handle. The canonical mobile overlay.
Dependencies
Interaction Type
Open to slide up from bottom. Swipe down, tap overlay, or press Escape to close. Focus is trapped inside.
Props
Options you can pass to customize this component.
open*Controlled open state.
onClose*Called when drawer should close.
dismissibleEnable swipe/overlay dismiss. Defaults to true.
Installation
How to use
<MobileDrawer open={open} onClose={() => setOpen(false)} aria-label="Filters">
<MobileDrawerTitle>Filters</MobileDrawerTitle>
{/* content */}
</MobileDrawer>Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.