Skip to content

Commit 94e7fa6

Browse files
authored
docs: add imports for useModalController examples
1 parent f4dd7e7 commit 94e7fa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/docs/src/docs/composables/useModalController.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Showing a modal is done through the `show` or `confirm` method
5454
</template>
5555
5656
<script setup lang="ts">
57+
import { useModalController, useToast } from 'bootstrap-vue-next'
5758
const {confirm} = useModalController()
5859
const toast = useToast()
5960
@@ -83,6 +84,7 @@ const showExample = async () => {
8384
</template>
8485
8586
<script setup lang="ts">
87+
import { useModalController } from 'bootstrap-vue-next'
8688
const {show} = useModalController()
8789
8890
const title = ref('Hello')
@@ -119,6 +121,7 @@ Using props can work for most situations, but it leaves some finer control to be
119121
</template>
120122
121123
<script setup lang="ts">
124+
import { useModalController } from 'bootstrap-vue-next'
122125
const {show} = useModalController()
123126
124127
const firstRef = ref<OrchestratedToast>({
@@ -214,6 +217,7 @@ In addition to being able to create modals in a global context, you are also abl
214217
</template>
215218
216219
<script setup lang="ts">
220+
import { useModalController } from 'bootstrap-vue-next'
217221
const nestedModal1 = ref(false)
218222
const nestedModal2 = ref(false)
219223
const nestedModal3 = ref(false)

0 commit comments

Comments
 (0)