mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 01:10:40 +01:00
Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: Sébastien Chopin <seb@nuxt.com>
38 lines
444 B
Markdown
38 lines
444 B
Markdown
---
|
|
github: true
|
|
headlessui:
|
|
label: 'Dialog'
|
|
to: 'https://headlessui.com/vue/dialog'
|
|
---
|
|
|
|
## Usage
|
|
|
|
::component-example
|
|
#default
|
|
:slideover-example
|
|
#code
|
|
```vue
|
|
<script setup>
|
|
const open = ref(false)
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<UButton label="Open" @click="open = true" />
|
|
|
|
<USlideover v-model="open">
|
|
<!-- Content -->
|
|
</USlideover>
|
|
</div>
|
|
</template>
|
|
```
|
|
::
|
|
|
|
## Props
|
|
|
|
:component-props
|
|
|
|
## Preset
|
|
|
|
:component-preset
|