+ With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.
+
+
+ The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.
+
+
+
+
+
+
+
# Modal
+### Demo
+
+
+
```vue
-
+
+
+
+
+ Terms of Service
+
+
+ With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.
+
+
+ The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.
+
+
+
+
+
+
+
```
-
+### Slot Properties
+
+Modal slots recieve 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 aa38a79..28b10d0 100644
--- a/src/components/Modal/Modal.vue
+++ b/src/components/Modal/Modal.vue
@@ -1,37 +1,36 @@
-
-
-
-
-
-
-
- Terms of Service
-
-
-
-
-
-
- With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.
-
-
- The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them.
-
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 4/6] 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
- Terms of Service
+
+
+
+ Terms of Service
+
+
+
+
+
+
With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.
@@ -16,12 +27,14 @@
-
-
+
+
+
+
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
- Terms of Service
+
+
+
+ Terms of Service
+
+
+
+
+
+
With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply.
@@ -28,12 +39,14 @@ import { Modal } from 'flowbite-vue'
-
-
+
+
+
+
@@ -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 @@
diff --git a/docs/components/modal/examples/ModalSizeExample.vue b/docs/components/modal/examples/ModalSizeExample.vue
new file mode 100644
index 0000000..15c82b4
--- /dev/null
+++ b/docs/components/modal/examples/ModalSizeExample.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/components/modal/modal.md b/docs/components/modal/modal.md
index cf3b674..9c2a07a 100644
--- a/docs/components/modal/modal.md
+++ b/docs/components/modal/modal.md
@@ -1,9 +1,10 @@
# Modal
-### Demo
+## Demo
@@ -52,9 +53,35 @@ import { Modal } from 'flowbite-vue'
```
-### Slot Properties
+## Slot Properties
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)
+
+These properties allow your code to set the open/closed state of the modal easily.
+
+## Sizes
+
+The modal can come in the following sizes (based on TailwindCSS classes).
+
+`xs`, `sm`, `md`, `lg`, `xl`, `2xl`, `3xl`, `4xl`, `5xl`, `6xl`, `7xl`
+
+The default value is: `2xl`
+
+Demo:
+
+
+
+```vue
+
+
+
+
+
+
+
+```
\ No newline at end of file
diff --git a/src/components/Modal/Modal.vue b/src/components/Modal/Modal.vue
index e88f688..da29f54 100644
--- a/src/components/Modal/Modal.vue
+++ b/src/components/Modal/Modal.vue
@@ -4,7 +4,8 @@