You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to pass in the children to each slot without further wrapping. Current API enables this:
<MyComponent><h1slot="head">Heading</h1><buttonslot="head">log out</button><h2slot="main">Headline for the news!</h2><pslot="main">A paragraph of news</p>
[ ... ]
</MyComponent>
Authors may use whatever html-friendly method they choose to visually express their intent, but it's easy to see how this can make for an ugly dev experience. In cases with a lot of children to pass to a single slot, we're asked to choose between an otherwise unnecessary additional wrapper, or including slot=foo on every child.
Scenario:
Our component is an opinionated structure.
We want to pass in the children to each slot without further wrapping. Current API enables this:
Authors may use whatever html-friendly method they choose to visually express their intent, but it's easy to see how this can make for an ugly dev experience. In cases with a lot of children to pass to a single slot, we're asked to choose between an otherwise unnecessary additional wrapper, or including
slot=foo
on every child.Proposal:
The text was updated successfully, but these errors were encountered: