Skip to content

Commit

Permalink
docs(modal): clarify file names and UModals purpose (nuxt#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
noook authored and binhth-1206 committed Sep 14, 2024
1 parent a2b1f55 commit 7414901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/content/2.components/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Set the `fullscreen` prop to `true` to enable it.

### Control programmatically

First of all, add the `Modals` component to your app, preferably inside `app.vue`.
First of all, add the `Modals` component to your app, preferably inside `app.vue`. This component provides your application a place to render programmatically created modals.

```vue [app.vue]
<template>
Expand All @@ -81,8 +81,8 @@ Then, you can use the `useModal` composable to control your modals within your a
:component-example{component="modal-example-component" hiddenCode hiddenPreview }

::code-group{class="[&>div:last-child>div:first-child]:!rounded-t-none"}
:component-example{component="modal-example-composable" label="app.vue" }
:component-example{component="modal-example-component" hiddenPreview label="modal.vue" }
:component-example{component="modal-example-composable" label="index.vue" }
:component-example{component="modal-example-component" hiddenPreview label="components/ModalExampleComponent.vue" }
::

Additionally, you can close the modal within the modal component by calling `modal.close()`.
Expand Down

0 comments on commit 7414901

Please sign in to comment.