From 9b84d8b3635ce3b1b46f3b047e999b8d09cf7f0f Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Sun, 23 Jul 2023 12:01:01 -0700 Subject: [PATCH] feat: add modals --- src/lib/components/ui/modal/Modal.svelte | 54 ++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/lib/components/ui/modal/Modal.svelte diff --git a/src/lib/components/ui/modal/Modal.svelte b/src/lib/components/ui/modal/Modal.svelte new file mode 100644 index 00000000..1a997f43 --- /dev/null +++ b/src/lib/components/ui/modal/Modal.svelte @@ -0,0 +1,54 @@ + + +{#if open} + +
(open = false)} + > + +
{}} + transition:scale={{ start: 0.9, easing: expoOut }} + > + +
+ {#if $$slots.title} +

+ +

+ {/if} + +
+ {#if action} +
+ + + +
+ {/if} +
+
+
+{/if}