You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/3.components/modal.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,13 +305,13 @@ slots:
305
305
306
306
### Programmatic usage
307
307
308
-
You can use the [`useOverlay`](/composables/use-overlay) composable to open a Modal programatically.
308
+
You can use the [`useOverlay`](/composables/use-overlay) composable to open a Modal programmatically.
309
309
310
310
::warning
311
311
Make sure to wrap your app with the [`App`](/components/app) component which uses the [`OverlayProvider`](https://github.com/nuxt/ui/blob/v3/src/runtime/components/OverlayProvider.vue) component.
312
312
::
313
313
314
-
First, create a modal component that will be opened programatically:
314
+
First, create a modal component that will be opened programmatically:
Copy file name to clipboardExpand all lines: docs/content/3.components/slideover.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -304,13 +304,13 @@ slots:
304
304
305
305
### Programmatic usage
306
306
307
-
You can use the [`useOverlay`](/composables/use-overlay) composable to open a Slideover programatically.
307
+
You can use the [`useOverlay`](/composables/use-overlay) composable to open a Slideover programmatically.
308
308
309
309
::warning
310
310
Make sure to wrap your app with the [`App`](/components/app) component which uses the [`OverlayProvider`](https://github.com/nuxt/ui/blob/v3/src/runtime/components/OverlayProvider.vue) component.
311
311
::
312
312
313
-
First, create a slideover component that will be opened programatically:
313
+
First, create a slideover component that will be opened programmatically:
<USlideovertitle="Slideover with scoped slot close"description="This slideover has a scoped slot close that can be used to close the slideover from within the content.">
130
+
<UButtoncolor="neutral"variant="subtle"label="Open with scoped slot close" />
131
+
132
+
<template #header="{ close }">
133
+
<UButtonlabel="Close with scoped slot close"@click="close" />
134
+
</template>
135
+
136
+
<template #body="{ close }">
137
+
<UButtonlabel="Close with scoped slot close"@click="close" />
138
+
</template>
139
+
140
+
<template #footer="{ close }">
141
+
<UButtonlabel="Close with scoped slot close"@click="close" />
0 commit comments