Closed gbkwiatt closed 1 year ago
You are correct, currently decorators doesn't work with Svelte (at least not in v7). I'm not getting nothing like you are, I'm instead getting 'target' is a required option
. Maybe that's because you're using stories.mdx
to define the story while I've only tried with CSF3.
I have managed to get decorators working with slots in Svelte locally, but it's not quite done yet. I'll keep you updated.
Hurrah!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.55 containing PR #19987 that references this issue. Upgrade today to the @next
NPM tag to try it out!
npx sb upgrade --prerelease
Closing this issue. Please re-open if you think there's still more to do.
@gbkwiatt I'd love if you could try with the new alpha version and let us know if it fixed the issue or not.
Describe the bug
I was trying to apply decorators on my sveltekit storybook. But no matter how I do it it's just not being wrapper at all, either globally or component. I was thinking maybe class is not being picked up by tailwind, but I can't find that div with a class anywhere in the code
To Reproduce
Here is an example of
mdx
fileand my Decorator.svelte
or I've tried globally
Additional context
No response