-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Extract Vue component props to another file will be ignored by Storybook. #12331
Comments
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Sorry for the slow reply. I expect this is a limitation of @elevatebart can you confirm? |
This is indeed a limitation of the current static analysis. |
Hello @elevatebart ! I have a similar issue but with mixins usage. You said that mixin props will show in the documentation, but it doesn't if it's not explicitly defined as I'm using
Please tell me does Storybook have an alternative for displaying mixin props in the storybook documentation without explicitly using them as story controls? |
Hello @stefashkaa Thank you for taking the time to explain your use case. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
@elevatebart do you have more info on what the bug might be? I'm seeing this error still in the latest storybook and vue3. cheers |
Just giving this thread another bump. Example-code (tried in any setup):
Is there any mentionable workaround / progress on this subject? Sidenote: |
Btw imported types are now officially supported in vue 3.3. SFC. |
Hi, is there any progress on this issue? I have to say that in my React projects everything works amazing but unfortunately in Vue it dosen't...in React it would even extract descriptions if you add comments above your interface properties. it would be great to get this supported for Vue lovers! 🙏 |
Describe the bug
If you write Vue component's props in another file, and then import it and spread it to the
props
property section, Storybook won't be able to detect those props.To Reproduce
vue create sb6-test
with TypeScript templatecd sb6-test
npx sb@next init
HelloWorldButton.vue
HelloWorldButton.stories.ts
Now everything looks fine
However, if you extract those props like this
Now the Storybook can't detect those props right now.
The text was updated successfully, but these errors were encountered: