MiHCM
overlay/@mihcm/ui·v0.21.0·stable

Dialog

Accessible modal dialog built on native <dialog>. Composable: Dialog, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose.

Props

The full prop API for Dialog. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.

PropTypeDefaultDescriptionSince
openbooleanControlled open state. Required.0.5.0
onOpenChange(open: boolean) => voidCalled when the dialog should open/close. Required.0.5.0
size'sm' | 'md' | 'lg' | 'xl' | 'full''md'Content panel width. On DialogContent.0.5.0

Import

import { Dialog, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, DialogClose } from '@mihcm/ui/Dialog';