-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Svelte 5: Access snippets from context module #10350
Comments
Related: People want to export snippets, which should be doable as long as they don't use anything that's in scope of the instance component |
To chime in here, for Svelte CSF in Storybook, this would allow us to call https://github.com/storybookjs/addon-svelte-csf/blob/next/README.md#default-snippet |
Describe the problem
Can't send/find/reference/use a snippet defined in a component from a
<script context="module">
block in that componentExample of what I'm trying to do
Describe the proposed solution
Maybe make snippets visible from
<script context="module">
block, the possibility of define{#snippet coso() context="module"}
, javascript snippets or anything like that.Importance
would make my life easier
The text was updated successfully, but these errors were encountered: