Skip to content

[Bug]: layout.showPanel is in the docs, but doesn't work #32062

@syabro

Description

@syabro

Describe the bug

in types AddonConfig doesn't have it

interface Addon_Config {
    theme?: ThemeVars;
    layout?: {
        showSidebar?: API_LayoutCustomisations['showSidebar'];
        showToolbar?: API_LayoutCustomisations['showToolbar'];
    };
    toolbar?: {
        [id: string]: Addon_ToolbarConfig;
    };
    sidebar?: API_SidebarOptions;
    [key: string]: any;
}

Reproduction link

no

Reproduction steps

Create empty project with manager.ts code

import { addons } from 'storybook/manager-api';

addons.setConfig({
  layout: {
    showPanel: false
  }
});

System

Storybook Environment Info:

  System:
    OS: macOS 15.5
    CPU: (12) arm64 Apple M2 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.6.2 - ~/.nvm/versions/node/v21.6.2/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v21.6.2/bin/npm
    pnpm: 9.4.0 - ~/.nvm/versions/node/v21.6.2/bin/pnpm <----- active
  npmPackages:
    @storybook/addon-links: ^9.0.17 => 9.0.17
    @storybook/builder-vite: ^9.0.17 => 9.0.17
    @storybook/react-vite: ^9.0.17 => 9.0.17
    storybook: ^9.0.17 => 9.0.17

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions