Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How put a custom component in named slot withouth a wrapper? #4543

Closed
Morbden opened this issue Mar 11, 2020 · 2 comments
Closed

How put a custom component in named slot withouth a wrapper? #4543

Morbden opened this issue Mar 11, 2020 · 2 comments

Comments

@Morbden
Copy link

Morbden commented Mar 11, 2020

<CustomComponent>
  <div slot="named">
    <OtherComponent />
  </div>
</CustomComponent>
@Conduitry
Copy link
Member

You can't yet. #1037

@UltraCakeBakery
Copy link

UltraCakeBakery commented May 20, 2021

For people from the future that are looking for a way to do this, this is my current workaround:

<CustomComponent>
  <slot slot="named">
    <OtherComponent />
  </slot>
</CustomComponent>

Have not tested this in production yet but i'm pretty sure it should do the trick for basic use cases... don't quote me on that though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants