-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
149 additions
and
1 deletion.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
docs/components/content/examples/ModalExampleDisableOverlay.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script setup> | ||
const isOpen = ref(false) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<UButton label="Open" @click="isOpen = true" /> | ||
|
||
<UModal v-model="isOpen" :overlay="false"> | ||
<div class="p-4"> | ||
<Placeholder class="h-48" /> | ||
</div> | ||
</UModal> | ||
</div> | ||
</template> |
15 changes: 15 additions & 0 deletions
15
docs/components/content/examples/ModalExampleDisableTransition.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script setup> | ||
const isOpen = ref(false) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<UButton label="Open" @click="isOpen = true" /> | ||
|
||
<UModal v-model="isOpen" :transition="false"> | ||
<div class="p-4"> | ||
<Placeholder class="h-48" /> | ||
</div> | ||
</UModal> | ||
</div> | ||
</template> |
24 changes: 24 additions & 0 deletions
24
docs/components/content/examples/ModalExamplePreventClose.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script setup> | ||
const isOpen = ref(false) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<UButton label="Open" @click="isOpen = true" /> | ||
|
||
<UModal v-model="isOpen" prevent-close> | ||
<UCard :ui="{ ring: '', divide: 'divide-y divide-gray-100 dark:divide-gray-800' }"> | ||
<template #header> | ||
<div class="flex items-center justify-between"> | ||
<h3 class="text-base font-semibold leading-6 text-gray-900 dark:text-white"> | ||
Modal | ||
</h3> | ||
<UButton color="gray" variant="ghost" icon="i-heroicons-x-mark-20-solid" class="-my-1" @click="isOpen = false" /> | ||
</div> | ||
</template> | ||
|
||
<Placeholder class="h-32" /> | ||
</UCard> | ||
</UModal> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters