mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
21 lines
371 B
Vue
21 lines
371 B
Vue
<script setup lang="ts">
|
|
import { LazySlideoverExample } from '#components'
|
|
|
|
const count = ref(0)
|
|
|
|
const slideover = useSlideover()
|
|
|
|
function open() {
|
|
count.value++
|
|
|
|
slideover.open(LazySlideoverExample, {
|
|
title: 'Slideover',
|
|
count: count.value
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<UButton label="Open" color="neutral" variant="subtle" @click="open" />
|
|
</template>
|