Skip to content

Allow Svelte 5 render slots as snippets#9285

Merged
bluwy merged 2 commits into
mainfrom
svelte-snippet-support
Dec 7, 2023
Merged

Allow Svelte 5 render slots as snippets#9285
bluwy merged 2 commits into
mainfrom
svelte-snippet-support

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented Dec 4, 2023

Changes

Svelte 5 supports snippets in favor of slots: https://svelte-5-preview.vercel.app/docs/snippets#snippets-and-slots

This change allows our custom injected slots to be rendered as snippets.

Testing

Tested manually in the Svelte examples app.

Docs

n/a. bug fix.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 4, 2023

🦋 Changeset detected

Latest commit: ef74b7d

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added pkg: svelte Related to Svelte (scope) pkg: integration Related to any renderer integration (scope) pr: docs A PR that includes documentation for review labels Dec 4, 2023
Copy link
Copy Markdown
Contributor

@matthewp matthewp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simple!

@bluwy bluwy merged commit 1aa7fe8 into main Dec 7, 2023
@bluwy bluwy deleted the svelte-snippet-support branch December 7, 2023 14:47
@astrobot-houston astrobot-houston mentioned this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: integration Related to any renderer integration (scope) pkg: svelte Related to Svelte (scope) pr: docs A PR that includes documentation for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants