[FEAT] Required slots #536
Hulkmaster
started this conversation in
General
Replies: 1 comment
-
<script lang="ts" setup>
defineSlots<{
header: () => any,
body: () => any,
}>();
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What problem does this feature solve?
I have component with optional/required slots
i want parent component to explicitly show that
"Child component requires named slot 'body'"
What does the proposed API look like?
child.vue
parent.vue
ERROR: "Child.vue" requires named "body" slot
Beta Was this translation helpful? Give feedback.
All reactions