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

Adds conditional slot example #5383

Merged
merged 1 commit into from
Nov 18, 2020
Merged

Adds conditional slot example #5383

merged 1 commit into from
Nov 18, 2020

Conversation

kevmodrome
Copy link
Contributor

This added example shows how to use the newly added $$slots feature. Using @tanhauhau example that he posted on Twitter and can be seen here: https://svelte.dev/repl/b4b8da3ccfc84f6f947a3610c57fdf02?version=3.25.0

@kevmodrome
Copy link
Contributor Author

This complements #5277

@kevmodrome
Copy link
Contributor Author

kevmodrome commented Nov 1, 2020

Since #5277 was recently merged, maybe it's time to get this one in as well? Or close it if it's not an example you want to showcase of course!

@Conduitry Conduitry merged commit daec256 into sveltejs:master Nov 18, 2020
@mattwolff
Copy link
Contributor

This is great. It looks like that new example just needs a thumbnail image.
Screen Shot 2020-11-25 at 1 42 58 PM

I'm not seeing a conditional-slots.jpg file in static/examples/thumbnails/.

If there's not already a process to auto-generate those images, here's a screenshot I just grabbed for it.
conditional-slots

tanhauhau pushed a commit that referenced this pull request Nov 28, 2020
taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
tomoam pushed a commit to svelte-jp/svelte-site-jp that referenced this pull request Feb 2, 2021
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

Successfully merging this pull request may close these issues.

6 participants