forked from jaredpalmer/formik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
74 lines (69 loc) · 1.65 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { configure } from '@storybook/react';
import { setOptions } from '@storybook/addon-options';
// Option defaults:
setOptions({
/**
* Name to display in the top left corner
* @type {String}
*/
name: 'Formik',
/**
* URL for name in top left corner to link to
* @type {String}
*/
url: 'https://github.com/jaredpalmer/formik',
/**
* Show story component as full screen
* @type {Boolean}
*/
goFullScreen: false,
/**
* Display left panel that shows a list of stories
* @type {Boolean}
*/
showLeftPanel: true,
/**
* Display horizontal panel that displays addon configurations
* @type {Boolean}
*/
showDownPanel: false,
/**
* Display floating search box to search through stories
* @type {Boolean}
*/
showSearchBox: false,
/**
* Show horizontal addons panel as a vertical panel on the right
* @type {Boolean}
*/
downPanelInRight: false,
/**
* Sorts stories
* @type {Boolean}
*/
sortStoriesByKind: false,
/**
* Regex for finding the hierarchy separator
* @example:
* null - turn off hierarchy
* /\// - split by `/`
* /\./ - split by `.`
* /\/|\./ - split by `/` or `.`
* @type {Regex}
*/
hierarchySeparator: null,
/**
* Sidebar tree animations
* @type {Boolean}
*/
sidebarAnimations: true,
/**
* ID to select an addon panel
* @type {String}
*/
selectedAddonPanel: undefined, // The order of addons in the "Addons Panel" is the same as you import them in 'addons.js'. The first panel will be opened by default as you run Storybook
});
function loadStories() {
require('./example.stories');
}
configure(loadStories, module);