We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51d2c0 commit c0cf183Copy full SHA for c0cf183
.storybook/manager.ts
@@ -4,4 +4,16 @@ import npmxDark from './theme'
4
5
addons.setConfig({
6
theme: npmxDark,
7
+ layoutCustomisations: {
8
+ showToolbar: (state, defaultValue) => {
9
+ if (state.viewMode === 'docs' && state.storyId) {
10
+ const story = state.index?.[state.storyId]
11
+ const tags = story?.tags || []
12
+ if (tags.includes('hide-toolbar')) {
13
+ return false
14
+ }
15
16
+ return defaultValue
17
+ },
18
19
})
.storybook/storybook-welcome.mdx
@@ -1,6 +1,6 @@
1
import { Meta } from '@storybook/addon-docs/blocks';
2
3
-<Meta title="Welcome" />
+<Meta title="Welcome" tags={['hide-toolbar']}/>
# Welcome
0 commit comments