Tuesday, 1 September 2020

Hide Addons panel for some stories in Storybook

I'm using Code Preview globally in Storybook with storybook-addon-preview. However, I there is one story that has no code preview and it displays "No Preview found" message.
To hide the panel for single story, set following parameters in Story:
export default {
  title: 'Some title',
  parameters: { options: { showPanel: false } }
};

No comments:

Post a Comment