-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: Autodocs "union" type #25305
Comments
Hey, this will be fixed with #22285 |
Fixed with #22285 in version 8 |
Hi @larsrickert , this seems to be still a problem in React/Typescript/Vite. I'm using the latest version of storybook (v8.0.6). |
@janitza-IaMe React and Vue use completely different docgen plugins :) @storybookjs/core not sure who is responsible for react? |
@janitza-IaMe the default docgen for react is now |
I use react-docgen and it has this problem. |
@Jan-IaMe yes that is an expected limitation of |
Describe the bug
I have defined some props on the component with union. For example:
export interface MyComponentProps { title: string; subtitle?: string | undefined; }
I wrote a story for my component, added "autodocs" to tags and Storybook generated controls but for prop
subtitle
I got typeunion
. I expected to seestring | undefined
.To Reproduce
Add prop type for example
string | undefined
.System
storybook: 7.6.5
@storybook/vue3: 7.6.5
@storybook/vue3-vite: 7.6.5
Additional context
No response
The text was updated successfully, but these errors were encountered: