-
+
+
Open Dialog
@@ -11,13 +8,19 @@
v-model="dialog"
width="auto"
>
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-
-
- Close Dialog
-
+
+
+
+
diff --git a/packages/docs/src/examples/v-dialog/prop-persistent.vue b/packages/docs/src/examples/v-dialog/prop-persistent.vue
index c7f24ca8a51..75b8bedbcc8 100644
--- a/packages/docs/src/examples/v-dialog/prop-persistent.vue
+++ b/packages/docs/src/examples/v-dialog/prop-persistent.vue
@@ -1,43 +1,35 @@
-
+
-
-
+
+
Open Dialog
-
-
- Use Google's location service?
-
- Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.
-
+
+
+
-
+
+
Disagree
-
+
+
Agree
-
+
-
+
+
+
diff --git a/packages/docs/src/examples/v-dialog/usage.vue b/packages/docs/src/examples/v-dialog/usage.vue
index 31233726955..ba6e24aac42 100644
--- a/packages/docs/src/examples/v-dialog/usage.vue
+++ b/packages/docs/src/examples/v-dialog/usage.vue
@@ -45,14 +45,19 @@
const props = computed(() => {
return {
- width: '500',
+ 'max-width': '500',
}
})
const slots = computed(() => {
return `
-
-
+
+
diff --git a/packages/docs/src/pages/en/components/dialogs.md b/packages/docs/src/pages/en/components/dialogs.md
index 2afedaf10b1..2ef512c7190 100644
--- a/packages/docs/src/pages/en/components/dialogs.md
+++ b/packages/docs/src/pages/en/components/dialogs.md
@@ -19,7 +19,7 @@ features:
The `v-dialog` component inform users about a specific task and may contain critical information, require decisions, or involve multiple tasks. Use dialogs sparingly because they are interruptive.
-
+
@@ -36,30 +36,44 @@ In this basic example we use the **activator** slot to render a button that is u
| Component | Description |
| - | - |
| [v-dialog](/api/v-dialog/) | Primary component |
+| [v-overlay](/api/v-overlay/) | Extended component |
-## Examples
+## Anatomy
-### Props
+The recommended components to use inside of a `v-dialog` are:
-#### Activator
+* [v-card](/components/cards/)
+* [v-list](/components/lists/)
+* [v-sheet](/components/sheets/)
-In addition using the **activator** slot, we can instead use the **activator** prop to activate a dialog. By placing the dialog component inside the button, and setting the **activator** prop value to **"parent"** we can designate the parent (button) as the activator.
+
-
+| Element / Area | Description |
+| - | - |
+| 1. Container | The dialog's content that animates from the activator |
+| 2. Activator | The element that activates the dialog |
+
+## Guide
-### v-model
+The `v-dialog` component is used to inform users about a specific task and may contain critical information, require decisions, or involve multiple tasks. They are controlled by a **v-model** and/or an activator.
+
+### Props
+
+The `v-dialog` component extends [v-overlay](/components/overlays/) and has access to all of its props.
+
+#### v-model
You can also trigger a dialog by simply updating the v-model, without using either **activator** slot or prop. In this case, the dialog will not appear to be activated by any specific element, and will simply appear in the middle of the screen.
-#### Fullscreen
+#### Persistent
-Due to limited space, full-screen dialogs may be more appropriate for mobile devices than dialogs used on devices with larger screens.
+Persistent dialogs are not dismissed when touching outside or pressing the **esc** key.
-
+
#### Transitions
@@ -67,46 +81,62 @@ You can make the dialog appear from the top or the bottom.
-#### Persistent
+#### Nesting
-Persistent dialogs are not dismissed when touching outside or pressing the **esc** key.
+Dialogs can be nested: you can open one dialog from another.
-
+
+
+#### Overflowed
-#### Scrollable
+Modals that do not fit within the available window space will scroll the container.
+
+
+
+### Slots
+
+The `v-dialog` component has 2 slots, **activator** and **default**. The **activator** slot is used to designate an element that will activate the dialog. The **default** slot provides an **isActive** ref which is tied to the current state of the dialog.
+
+#### Activator
+
+In addition using the **activator** slot, we can instead use the **activator** prop to activate a dialog. By placing the dialog component inside the button, and setting the **activator** prop value to **"parent"** we can designate the parent (button) as the activator.
+
+
+
+#### Default
+
+
+
+## Examples
+
+The following are a collection of examples that demonstrate more advanced and real world use of the `v-dialog` component.
+
+### Scrollable
Example of a dialog with scrollable content.
-### Misc
-
-#### Form
+### Form
A simple example of a form in a dialog.
-#### Loader
+### Loader
The `v-dialog` component makes it easy to create a customized loading experience for your application.
-#### Nesting
-
-Dialogs can be nested: you can open one dialog from another.
-
-
+### Fullscreen
-#### Overflowed
-
-Modals that do not fit within the available window space will scroll the container.
+Due to limited space, full-screen dialogs may be more appropriate for mobile devices than dialogs used on devices with larger screens.
-
+
-
+
diff --git a/packages/docs/src/plugins/icons.ts b/packages/docs/src/plugins/icons.ts
index a77ac755929..aee48b97baf 100644
--- a/packages/docs/src/plugins/icons.ts
+++ b/packages/docs/src/plugins/icons.ts
@@ -60,6 +60,7 @@ export {
mdiBullhorn,
mdiBullhornOutline,
mdiBullseye,
+ mdiBullseyeArrow,
mdiCached,
mdiCakeVariant,
mdiCalendar,
@@ -131,6 +132,7 @@ export {
mdiDotsVertical,
mdiDownloadBoxOutline,
mdiDropbox,
+ mdiEarth,
mdiEmail,
mdiEmailOpen,
mdiEmailOpenOutline,
@@ -291,6 +293,7 @@ export {
mdiPencil,
mdiPhone,
mdiPhoneInTalk,
+ mdiPictureInPictureBottomRight,
mdiPin,
mdiPinOff,
mdiPinOutline,
@@ -359,11 +362,13 @@ export {
mdiUnfoldMoreHorizontal,
mdiUpdate,
mdiUpload,
+ mdiVariable,
mdiVectorDifferenceAb,
mdiVideoInputComponent,
mdiVideoVintage,
mdiViewDashboard,
mdiViewDashboardOutline,
+ mdiWindowRestore,
mdiViewGridOutline,
mdiViewListOutline,
mdiViewModule,