In Vue 2 or Vue 3 (Options API), you can check if the slot has content using this.$slots.default.
Parent Component
Child Component
Notes:
Work with our skilled Vue developers to accelerate your project and boost its performance.
Hire Vuejs Developers