You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your amazing, delicious work on Storybook!!!
Is your feature request related to a problem? Please describe
I'm trying Storybook for the first time and with Svelte.
Using kitchen-sink example here I find it very inconvenient to create "wrappers" (such as ButtonView.svelte) because it becomes a tedious repetition of the component itself.
Example:
A button has primary and size (and many other) props and I need to put them both in ButtonView.svelte and the real Button.svelte component to use it in Storybook.
Why this? Could it be because it is complicated to inject slots?
Maybe I'm wrong in using it like this?
Describe the solution you'd like
I would like to "directly" use Button.svelte in my button.stories.js without ButtonView.svelte wrapper.
Thanks for your amazing, delicious work on Storybook!!!
Is your feature request related to a problem? Please describe
I'm trying Storybook for the first time and with Svelte.
Using kitchen-sink example here I find it very inconvenient to create "wrappers" (such as
ButtonView.svelte
) because it becomes a tedious repetition of the component itself.Example:
A button has
primary
andsize
(and many other) props and I need to put them both inButtonView.svelte
and the realButton.svelte
component to use it in Storybook.Why this? Could it be because it is complicated to inject slots?
Maybe I'm wrong in using it like this?
Describe the solution you'd like
I would like to "directly" use
Button.svelte
in mybutton.stories.js
withoutButtonView.svelte
wrapper.Maybe we can use an object like this:
What do you think, Svelte guys? 😄
The text was updated successfully, but these errors were encountered: