Given a dynamic Vue component, is there a way to place an element within the rendered dynamic component without having to declare slots (or anything else) in the incoming component?
Ultimately this is for a more-complex-than-usual modal component with an "X" close icon in a corner. I want the "X" to occur within the relative confines of the content outer parent wrap which makes positioning of the "X" way easier. There are workarounds I'm already using, but if the below were possible it would be more elegant.
<component :is="myComponentFromAnywhere">
<div id="someControl" style="position: absolute">X</div>
</component>
As expected, the div someControl gets blown away when the component content is injected. Using slots of some kind likely means I have to declare slots in the incoming component myComponentFromAnywhere, however I'm trying to avoid this.