{title}
+
+
+ ⋮
+
+
+
+ setDisplayMode('default')}>Default
+ setDisplayMode('drawer')}>Drawer
+ setDisplayMode('fullscreen')}>Full Screen
+
+
{children}
{cancelButton || confirmButton ? (
diff --git a/src/quick-modal.ts b/src/quick-modal.ts
index 771eb55..6552bbc 100644
--- a/src/quick-modal.ts
+++ b/src/quick-modal.ts
@@ -8,9 +8,14 @@ export type ModalPropsWith = {
modal: ModalHook;
};
+export type DisplayMode = 'default' | 'drawer' | 'fullscreen';
+
export type ModalHook = {
showModal(component: ComponentType
, props?: Omit
): void;
hideModal(): void;
+ displayMode: DisplayMode;
+ setDisplayMode: (mode: DisplayMode) => void;
+ containerRef?: React.RefObject;
};
export type ModalProps = {