Skip to content
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

Rendering a story canvas is skipping false boolean props #19121

Open
alansouzati opened this issue Sep 7, 2022 · 1 comment
Open

Rendering a story canvas is skipping false boolean props #19121

alansouzati opened this issue Sep 7, 2022 · 1 comment

Comments

@alansouzati
Copy link

Is your feature request related to a problem? Please describe
When using showCode inside storybook canvas, the code section renders properly but currently skips false boolean prop. For example:

<AvatarGroup overlap={false}>...</AvatarGroup>

renders as:

<AvatarGroup>...</AvatarGroup>

Describe the solution you'd like
What would you like to see added to Storybook to solve problem?
Please keep the false boolean flags in the rendered code

Describe alternatives you've considered
Any alternative solutions or features you've considered.
I think at least having an option to enable this is desired

Are you able to assist to bring the feature to reality?
Yes, I would need some guidance given Im not really familiar with Storybook source

Additional context
Add any other context or screenshots about the feature request here.

@emlai
Copy link

emlai commented Nov 17, 2022

Probably caused by algolia/react-element-to-jsx-string#732

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants