aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/.storybook/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/.storybook/config.js')
-rw-r--r--openecomp-ui/.storybook/config.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/openecomp-ui/.storybook/config.js b/openecomp-ui/.storybook/config.js
new file mode 100644
index 0000000000..94e9855fa2
--- /dev/null
+++ b/openecomp-ui/.storybook/config.js
@@ -0,0 +1,27 @@
+import React from 'react';
+import {configure, addDecorator} from '@kadira/storybook';
+import {withKnobs} from '@kadira/storybook-addon-knobs';
+import { setOptions } from '@kadira/storybook-addon-options';
+import './storybook.scss';
+import '../resources/scss/onboarding.scss';
+
+
+const req = require.context('../src', true, /.stories.js$/)
+const namespaceDecorator = (story) => (
+ <div className='dox-ui'>
+ {story()}
+ </div>
+);
+
+addDecorator(namespaceDecorator);
+
+setOptions({
+ name: 'custom',
+ downPanelInRight: true
+});
+
+function loadStories() {
+ req.keys().forEach((filename) => req(filename))
+}
+
+configure(loadStories, module); \ No newline at end of file