Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created September 15, 2017 13:29
Show Gist options
  • Save aaronmcadam/dee289751c1b821c89282c05c2d8be2e to your computer and use it in GitHub Desktop.
Save aaronmcadam/dee289751c1b821c89282c05c2d8be2e to your computer and use it in GitHub Desktop.
import { configure, setAddon } from '@storybook/react';
import { setOptions } from '@storybook/addon-options';
setOptions({
name: 'CrowdLab UI',
url: 'https://github.com/crowdlab-uk/cl-ui',
downPanelInRight: true,
});
const req = require.context('../packages', true, /\.stories\.js$/);
const loadStories = () => req.keys().forEach(req);
configure(loadStories, module);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment