overlay/@mihcm/ui·v0.21.0·stable
Drawer
Mobile-friendly bottom sheet / drawer with swipe-to-dismiss. Touch-optimised with spring physics via vaul.
Props
The full prop API for Drawer. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
open | boolean | — | Controlled open state. | 0.5.0 |
onOpenChange | (open: boolean) => void | — | Called when drawer should open/close. | 0.5.0 |
shouldScaleBackground | boolean | true | Scales the background page when open. | 0.5.0 |
Import
import { Drawer, DrawerTrigger, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerFooter, DrawerClose } from '@mihcm/ui/Drawer';