UNPKG

1.61 kBTypeScriptView Raw
1interface PresetOptions {
2 /**
3 * Allow to use @storybook/addon-actions
4 *
5 * @default true
6 * @see https://storybook.js.org/addons/@storybook/addon-actions
7 */
8 actions?: boolean;
9 /**
10 * Allow to use @storybook/addon-backgrounds
11 *
12 * @default true
13 * @see https://storybook.js.org/addons/@storybook/addon-backgrounds
14 */
15 backgrounds?: boolean;
16 configDir: string;
17 /**
18 * Allow to use @storybook/addon-controls
19 *
20 * @default true
21 * @see https://storybook.js.org/addons/@storybook/addon-controls
22 */
23 controls?: boolean;
24 /**
25 * Allow to use @storybook/addon-docs
26 *
27 * @default true
28 * @see https://storybook.js.org/addons/@storybook/addon-docs
29 */
30 docs?: boolean;
31 /**
32 * Allow to use @storybook/addon-measure
33 *
34 * @default true
35 * @see https://storybook.js.org/addons/@storybook/addon-measure
36 */
37 measure?: boolean;
38 /**
39 * Allow to use @storybook/addon-outline
40 *
41 * @default true
42 * @see https://storybook.js.org/addons/@storybook/addon-outline
43 */
44 outline?: boolean;
45 themes?: boolean;
46 /**
47 * Allow to use @storybook/addon-toolbars
48 *
49 * @default true
50 * @see https://storybook.js.org/addons/@storybook/addon-toolbars
51 */
52 toolbars?: boolean;
53 /**
54 * Allow to use @storybook/addon-viewport
55 *
56 * @default true
57 * @see https://storybook.js.org/addons/@storybook/addon-viewport
58 */
59 viewport?: boolean;
60}
61declare function addons(options: PresetOptions): string[];
62
63export { addons };