Sheet.vue 419 B

123456789101112131415161718
  1. <script setup lang="ts">
  2. import type { DialogRootEmits, DialogRootProps } from "reka-ui"
  3. import { DialogRoot, useForwardPropsEmits } from "reka-ui"
  4. const props = defineProps<DialogRootProps>()
  5. const emits = defineEmits<DialogRootEmits>()
  6. const forwarded = useForwardPropsEmits(props, emits)
  7. </script>
  8. <template>
  9. <DialogRoot
  10. data-slot="sheet"
  11. v-bind="forwarded"
  12. >
  13. <slot />
  14. </DialogRoot>
  15. </template>