storybookjs/storybook

[Bug]: Storybook false props are not appearing in the show code react

Open

#30704 opened on Feb 27, 2025

View on GitHub
 (5 comments) (1 reaction) (1 assignee)TypeScript (89,909 stars) (10,058 forks)batch import
block: sourcebughelp wantedsev:S3

Description

Describe the bug

I have props that are true by default and when I set them to false I expect them to be set to false in the show code section.

Reproduction link

Reproduction steps

Image

No response

System

System:
    OS: macOS 14.2
    CPU: (8) arm64 Apple M1 Pro
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn <----- active
    npm: 10.2.3 - /usr/local/bin/npm
  Browsers:
    Chrome: 133.0.6943.127
    Safari: 17.2
  npmPackages:
    @storybook/addon-essentials: ^8.5.3 => 8.5.4 
    @storybook/addon-interactions: ^8.5.3 => 8.5.4 
    @storybook/addon-links: ^8.5.3 => 8.5.4 
    @storybook/addon-onboarding: ^8.5.3 => 8.5.4 
    @storybook/blocks: ^8.5.3 => 8.5.4 
    @storybook/react: ^8.5.3 => 8.5.4 
    @storybook/react-vite: ^8.5.3 => 8.5.4 
    @storybook/test: ^8.5.3 => 8.5.4 
    eslint-plugin-storybook: ^0.11.2 => 0.11.2 
    storybook: ^8.5.3 => 8.5.4

Additional context

No response

Contributor guide