#12498·Vue.js

API for getting slots programmatically when SFC is built as Custom Element

Author: ihardyslideCreated Dec 3, 2024Updated Sep 4, 2026
Labels:sparkles: feature requestscope: custom elements

Vue version

3.4.10

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-xycchc?file=src%2FApp.vue

Steps to reproduce

Run and check empty slots for Custom Element/Web Component

What is expected?

Some way of accessing slots programmatically

What is actually happening?

Impossible to access slots programmatically

System Info

No response

Any additional comments?

I have decided to open another issue regarding this behaviour, because I couldn't find any solution to this problem and all related issues are closed. I have also re-used the stackblitz example of below mentioned issue, because the reproduction code is still valid.

Related issues I have found:

I was not able to successfully access the props with any of those suggestions in the comments. Furthermore they all sound like a workaround and not a solution to this problem, in my opinion.

I could also not find any new internal API which is providing this in the docs, maybe there is already something which I was not able to find?

Thanks & BR