From bf4880876e0d88b2e0cba4f0dbd26dd3f5e6b507 Mon Sep 17 00:00:00 2001 From: Dmitri <19738862+Dmitri-2@users.noreply.github.com> Date: Thu, 8 Sep 2022 10:22:50 -0700 Subject: [PATCH] Update modal to have generic slots --- .../modal/examples/ModalExample.vue | 27 ++++++++++++----- docs/components/modal/modal.md | 29 ++++++++++++++----- src/components/Modal/Modal.vue | 18 +++++------- 3 files changed, 48 insertions(+), 26 deletions(-) diff --git a/docs/components/modal/examples/ModalExample.vue b/docs/components/modal/examples/ModalExample.vue index df2b134..c354d8f 100644 --- a/docs/components/modal/examples/ModalExample.vue +++ b/docs/components/modal/examples/ModalExample.vue @@ -6,7 +6,18 @@ Show Modal - + diff --git a/docs/components/modal/modal.md b/docs/components/modal/modal.md index 38a79c0..cf3b674 100644 --- a/docs/components/modal/modal.md +++ b/docs/components/modal/modal.md @@ -18,7 +18,18 @@ import { Modal } from 'flowbite-vue' Show Modal - + @@ -41,7 +54,7 @@ import { Modal } from 'flowbite-vue' ### Slot Properties -Modal slots recieve the following functions to interact with the modal: +Modal slots receive the following functions to interact with the modal: 1. `show` = show the modal 2. `hide` = hide the modal 3. `toggle` = toggles the modal from current state (e.g. if shown, then hide) diff --git a/src/components/Modal/Modal.vue b/src/components/Modal/Modal.vue index 7e14112..e88f688 100644 --- a/src/components/Modal/Modal.vue +++ b/src/components/Modal/Modal.vue @@ -2,26 +2,22 @@
-
+
-
-

- -

- +
+
-
+
-
+