-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Is your feature request related to a problem? Please describe.
There should be some option to not bind the slot to any node:
<div class='test'><slot name="test" /></div>
and the input:
<p slot="test">Hello <b>World</b></p>
and the output is:
<div class='test'><p slot='test'>Hello <b>World</b></p></div>
But, there is no way to get something like this with using named slots:
<div class='test'>Hello <b>World</b></div>
Describe the solution you'd like
I would prefer for something like this:
<p slot="test" slot:node={false}>Hello World</p>
So the p
element will not be added to the slot, but just the content.
How important is this feature to you?
Important, as this causes many problems with component composition and flexbox.
Metadata
Metadata
Assignees
Labels
No labels