MiHCM
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.

PropTypeDefaultDescriptionSince
openbooleanControlled open state.0.5.0
onOpenChange(open: boolean) => voidCalled when drawer should open/close.0.5.0
shouldScaleBackgroundbooleantrueScales the background page when open.0.5.0

Import

import { Drawer, DrawerTrigger, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerFooter, DrawerClose } from '@mihcm/ui/Drawer';