Skip to content

Commit 655e3f7

Browse files
committed
fix: hide controls and actions
1 parent 340feea commit 655e3f7

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

.storybook/main.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
44

55
const config: StorybookConfig = {
66
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
7-
addons: ['@storybook/addon-essentials', '@storybook/preset-scss', '@storybook/addon-docs'],
7+
addons: [
8+
{
9+
name: '@storybook/addon-essentials',
10+
options: {
11+
controls: false,
12+
actions: false,
13+
},
14+
},
15+
'@storybook/preset-scss',
16+
],
817
framework: {
918
name: '@storybook/react-webpack5',
1019
options: {fastRefresh: true},

.storybook/preview.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@ import {withTheme, withLang} from './decorators';
22

33
export const decorators = [withTheme, withLang];
44

5-
export const parameters = {
6-
controls: {disable: true},
7-
actions: {disable: true},
5+
/* export const parameters = {
6+
options: {
7+
showPanel: false,
8+
controls: {expanded: false},
9+
},
10+
previewTabs: {
11+
docs: {hidden: true},
12+
'storybook/docs/panel': {
13+
hidden: true,
14+
},
15+
},
816
};
9-
17+
*/
1018
export const globalTypes = {
1119
theme: {
1220
defaultValue: 'light',

0 commit comments

Comments
 (0)