Skip to content

Make slots work #9

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

Closed
woutdp opened this issue Feb 23, 2023 · 5 comments
Closed

Make slots work #9

woutdp opened this issue Feb 23, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@woutdp
Copy link
Owner

woutdp commented Feb 23, 2023

No description provided.

@woutdp woutdp added the enhancement New feature or request label Feb 23, 2023
@woutdp
Copy link
Owner Author

woutdp commented Feb 26, 2023

Maybe custom components are the answer here

@woutdp
Copy link
Owner Author

woutdp commented Feb 28, 2023

Some findings:

For SSR there's support for passing the slot.
For the client pasing the $$slots prop seems like the way to go but it's not working.
Something like$$slots: {default: ...} seems to at least crash the component if there's a slot

Still not sure if it's even possible

@woutdp
Copy link
Owner Author

woutdp commented Mar 1, 2023

sveltejs/svelte#2588

@woutdp
Copy link
Owner Author

woutdp commented Mar 1, 2023

Custom components also look promising, maybe with the use of https://github.com/crisward/svelte-tag

@woutdp
Copy link
Owner Author

woutdp commented Mar 9, 2023

Slots sort of work, still experimental but it's a start

@woutdp woutdp closed this as completed Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant