This extension was created to make writing component libraries with Svelte and Storybook much faster by automating the repetitive task of creating new files and typing in boilerplate code. In order for the Create Stories command to work correctly, this extension assumes you have a SvelteKit-Storybook project with a lib directory under src where all your components live, and a stories directory under src where all your stories live. It also assumes that you are using the Storybook addon @storybook/addon-svelte-csf in order for the snippets to be meaningful.
Run this command to create a Storybook stories file based on the current open document.
This snippet is inserted as a part of the Create Stories command to provide a template for the new file. The prefix (trigger text) for this snippet is 'story-init'.
This snippet is used to quickly create a new story. The prefix for this snippet is 'story'.