-
Notifications
You must be signed in to change notification settings - Fork 106
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
Controls not automatically generated for Single File Components #46
Comments
FYI, we are currently in the process of rearchitecting Storybook (as part of 6.4/7.0) to make the docgen generation decoupled from webpack. I don't have a timeline available yet, but should be able to share more about the project in the next couple weeks. |
@shilman - That's great news, thanks for letting me know 😄 Where would be the best place to get updates on the progress of the re-architecture? The GitHub repo, StoryBook blog? |
This should be fixed in #47 . |
I'm having the same issue for React using Typescript. It looks like #47 adds a vue plugin, will there be something similar for React? |
There is an experiment in #190, but it does not have all of the features that some might want. |
Hi
Thanks so much for writing this builder for Storybook! Being able to use Vite is so much better!
I am having an issue with getting controls to automatically generate for single file components though.
I have followed the setup guide for getting started using Storybook with Vue 3, Vite and TypeScript. Everything is running ok except I cannot get my story to automatically generate controls (or source) based on the components props.
I've had controls configured using the
argTypes
property but as far as I am aware Storybook should be able to generate these out of the box based on the components props?I have been hunting through documentation and addons but can't find anything. Any help would be much appreciated.
Here is my current setup:
Storybook Packages:
main.js:
preview.js:
The source component props:
The story for this component:
Screenshot showing no controls:
Am I missing something completely obvious?
The text was updated successfully, but these errors were encountered: