This is a project demonstrating the usage of Svelte CSF as implemented in @storybook/addon-svelte-csf
.
The purpose of this project is not to document the addon, nor to show off how great it is, but rather to compare the usage of Storybook's features between Svelte CSF and regular CSF3.
With this we're hoping to gain insights into how the features map to this alternative language, where it falls short and where it excels.
These are the following Storybook features we attempt to uncover in this project and their current conclusion:
Status | Feature | Links |
---|---|---|
⏳ | title |
|
⏳ | name |
|
⏳ | component |
|
⏳ | subcomponents |
|
⏳ | argTypes |
|
⏳ | args |
|
⏳ | parameters |
|
⏳ | beforeEach |
|
⏳ | loaders |
|
⏳ | decorators |
|
⏳ | render |
|
⏳ | play |
|
🟡 | How to type the meta object and stories | PR, stories |
🟡 | JSDoc comments as descriptions (from component, meta and stories) | PR, stories |
🟡 | Docs, including autodocs, MDX docs and useOf |
PR, stories |
⏳ | Non-story exports |
Everyone is welcome to contribute demonstrations of any of the above mentioned features, or other features that we might have missed, by opening pull requests.
A few guide lines:
argTypes
, don't create a Button.svelte
component and Button.stories.svelte
stories and come up with examples for how to write argTypes
for buttons. Instead, build an ArgTypes.svelte
component and stories that clearly and only demonstrates argTypes
.See PR #1 for an example of all of this.
pnpm install
pnpm storybook