File size: 567 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { configure, addDecorator } from '@storybook/react';
import { setOptions } from '@storybook/addon-options';

import centered from '@storybook/addon-centered';
import { withKnobs } from '@storybook/addon-knobs';

setOptions({
  name: 'React Color',
  url: 'http://casesandberg.github.io/react-color/',
  downPanelInRight: true,
})

addDecorator(centered);
addDecorator(withKnobs);

const req = require.context('../src/components', true, /\.?story\.js$/)
const loadStories = () => req.keys().forEach((filename) => req(filename))

configure(loadStories, module);