overlay/@mihcm/ui·v0.21.0·stable
Drawer
Mobile-friendly bottom sheet / drawer with swipe-to-dismiss. Touch-optimised with spring physics via vaul.
Live preview
Adjust the controls on the right; the preview and code update in real time.
example.tsxtsx
import { Drawer, DrawerTrigger, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerFooter, DrawerClose } from '@mihcm/ui/Drawer';
export function Example() {
return (
<Drawer
title="Edit Profile"
description="Make changes to your profile here."
></Drawer>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add DrawerCopies the source into
components/ds/Drawer.tsx. You own the file. Use --out to override the directory or --force to overwrite.