mdxjs

Hide Docs tab in Storybook

旧时模样 提交于 2021-02-08 08:23:21
问题 I want to create stories using both Typescript and MDX, therefore I have in my main.js : module.exports = { stories: ['../src/**/*.stories.(mdx|ts)'], addons: ['@storybook/addon-docs', 'storybook-addon-preview'] }; However I don't want to have "Docs" tab next to "Canvas". How do I remove it? Without '@storybook/addon-docs' MDX story is not displayed. 回答1: Put this in preview.js : export const parameters = { previewTabs: { 'storybook/docs/panel': { hidden: true } } }; Used in Storybook version