mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
21 lines
387 B
Vue
21 lines
387 B
Vue
<script setup lang="ts">
|
|
import { LazyModalExample } from '#components'
|
|
|
|
const count = ref(0)
|
|
|
|
const modal = useModal()
|
|
|
|
function open() {
|
|
count.value++
|
|
|
|
modal.open(LazyModalExample, {
|
|
description: 'And you can even provide a description!',
|
|
count: count.value
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<UButton label="Open" color="neutral" variant="subtle" @click="open" />
|
|
</template>
|