UNPKG

749 BTypeScriptView Raw
1export declare const ADDON_ID = "storybook/docs";
2export declare const PANEL_ID: string;
3export declare const PARAM_KEY = "docs";
4export declare const SNIPPET_RENDERED: string;
5export declare enum SourceType {
6 /**
7 * AUTO is the default
8 *
9 * Use the CODE logic if:
10 * - the user has set a custom source snippet in `docs.source.code` story parameter
11 * - the story is not an args-based story
12 *
13 * Use the DYNAMIC rendered snippet if the story is an args story
14 */
15 AUTO = "auto",
16 /**
17 * Render the code extracted by source-loader
18 */
19 CODE = "code",
20 /**
21 * Render dynamically-rendered source snippet from the story's virtual DOM (currently React only)
22 */
23 DYNAMIC = "dynamic"
24}