From 3744a18ab44ca4703062e0b46b7ac017e8a454ca Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Tue, 30 Sep 2025 19:29:39 +0530 Subject: [PATCH] New Changes with Model with OnOpen Function --- src/components/Modal.astro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Modal.astro b/src/components/Modal.astro index 3b25a2b..5332c8a 100644 --- a/src/components/Modal.astro +++ b/src/components/Modal.astro @@ -7,6 +7,7 @@ interface Props { size?: "sm" | "md" | "lg" | "xl" | "full"; position?: "center" | "top" | "bottom"; closedby?: "none" | "closerequest" | "any"; + onOpen?: () => void; onClose?: () => void; dialogClass?: string; triggerClass?: string; @@ -17,6 +18,7 @@ const { size = "md", position = "center", open, + onOpen, onClose, closedby = "none", dialogClass = "", @@ -75,13 +77,16 @@ const { } -