diff --git a/apps/www/src/lib/registry/default/ui/switch/Switch.vue b/apps/www/src/lib/registry/default/ui/switch/Switch.vue index 6e79d03f..728963ca 100644 --- a/apps/www/src/lib/registry/default/ui/switch/Switch.vue +++ b/apps/www/src/lib/registry/default/ui/switch/Switch.vue @@ -10,11 +10,15 @@ import { import { computed, type HTMLAttributes } from 'vue' const props = defineProps() + const emits = defineEmits() + const delegatedProps = computed(() => { const { class: _, ...delegated } = props + return delegated }) + const forwarded = useForwardPropsEmits(delegatedProps, emits) diff --git a/apps/www/src/public/registry/styles/default/switch.json b/apps/www/src/public/registry/styles/default/switch.json index 02968d64..3768809e 100644 --- a/apps/www/src/public/registry/styles/default/switch.json +++ b/apps/www/src/public/registry/styles/default/switch.json @@ -7,7 +7,7 @@ "files": [ { "name": "Switch.vue", - "content": "\n\n" + "content": "\n\n\n" }, { "name": "index.ts",