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.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
open | boolean | — | Controlled open state. Required. | 0.5.0 |
onOpenChange | (open: boolean) => void | — | Called 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';