mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
20 lines
478 B
Vue
20 lines
478 B
Vue
|
|
<script lang="ts" setup>
|
||
|
|
import { useForwardPropsEmits } from "radix-vue";
|
||
|
|
import type { DrawerRootEmits, DrawerRootProps } from "vaul-vue";
|
||
|
|
import { DrawerRoot } from "vaul-vue";
|
||
|
|
|
||
|
|
const props = withDefaults(defineProps<DrawerRootProps>(), {
|
||
|
|
shouldScaleBackground: true,
|
||
|
|
});
|
||
|
|
|
||
|
|
const emits = defineEmits<DrawerRootEmits>();
|
||
|
|
|
||
|
|
const forwarded = useForwardPropsEmits(props, emits);
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<DrawerRoot v-bind="forwarded">
|
||
|
|
<slot />
|
||
|
|
</DrawerRoot>
|
||
|
|
</template>
|