mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
18 lines
385 B
Vue
18 lines
385 B
Vue
<script setup lang="ts">
|
|
import { SlideoverExampleComponent } from '#components'
|
|
|
|
const slideover = useSlideover()
|
|
const count = ref(0)
|
|
function openSlideover () {
|
|
count.value += 1
|
|
slideover.open(SlideoverExampleComponent, {
|
|
count: count.value,
|
|
onClose: slideover.close
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<UButton label="Reveal slideover" @click="openSlideover" />
|
|
</template>
|