Skip to content

Commit

Permalink
fix: dialog props missing (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
starker-xp committed Jan 4, 2024
1 parent 0f0f1ef commit 9d9a6f9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
23 changes: 14 additions & 9 deletions apps/www/src/lib/registry/default/ui/dialog/Dialog.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<script setup lang="ts">
import { DialogRoot } from 'radix-vue'
</script>

<template>
<DialogRoot>
<slot />
</DialogRoot>
</template>
<script setup lang="ts">
import { DialogRoot, type DialogRootEmits, type DialogRootProps, useForwardPropsEmits } from 'radix-vue'
const props = defineProps<DialogRootProps>()
const emits = defineEmits<DialogRootEmits>()
const forwarded = useForwardPropsEmits(props, emits)
</script>

<template>
<DialogRoot v-bind="forwarded">
<slot />
</DialogRoot>
</template>
9 changes: 7 additions & 2 deletions apps/www/src/lib/registry/new-york/ui/dialog/Dialog.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<script setup lang="ts">
import { DialogRoot } from 'radix-vue'
import { DialogRoot, type DialogRootEmits, type DialogRootProps, useForwardPropsEmits } from 'radix-vue'
const props = defineProps<DialogRootProps>()
const emits = defineEmits<DialogRootEmits>()
const forwarded = useForwardPropsEmits(props, emits)
</script>

<template>
<DialogRoot>
<DialogRoot v-bind="forwarded">
<slot />
</DialogRoot>
</template>

0 comments on commit 9d9a6f9

Please sign in to comment.