embark/packages/embark-ui/.storybook/config.js

24 lines
594 B
JavaScript
Raw Normal View History

2019-01-15 11:29:57 +00:00
import { addDecorator, configure } from '@storybook/react';
import { withOptions } from '@storybook/addon-options';
const req = require.context("../src/stories", true, /.stories.jsx$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}
addDecorator(
withOptions({
addonPanelInRight: true,
})
);
configure(loadStories, module);
import '@coreui/icons/css/coreui-icons.min.css';
import 'font-awesome/css/font-awesome.min.css';
import 'simple-line-icons/css/simple-line-icons.css';
import '@coreui/coreui/dist/css/coreui.min.css';
import '../src/index.css';