You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you don't want to allow the creation or editing of stories from the Controls panel, you can disable this feature by setting the `disableSave` parameter to `true` in the `parameters.controls` parameter in your `.storybook/preview.js` file.
266
+
263
267
## Configuration
264
268
265
269
The Controls addon can be configured in two ways:
@@ -484,3 +488,11 @@ Specifies how the controls are sorted.
484
488
***none**: Unsorted, displayed in the same order the arg types are processed in
485
489
***alpha**: Sorted alphabetically, by the arg type's name
486
490
***requiredFirst**: Same as `alpha`, with any required arg types displayed first
491
+
492
+
#### `disableSave`
493
+
494
+
Type: `boolean`
495
+
496
+
Default: `false`
497
+
498
+
Disable the ability to create or edit stories from the Controls panel.
0 commit comments