UNPKG

cytoscape-react-fe-ml

Version:
30 lines (25 loc) 741 B
import { addDecorator, configure } from '@storybook/react'; import { withOptions } from '@storybook/addon-options'; import { withInfo } from '@storybook/addon-info'; addDecorator(withInfo({ header: true, /** * Displays info inline vs click button to view * @default false */ inline: true, })); addDecorator(withOptions({ name: 'README addon', goFullScreen: false, showLeftPanel: true, showDownPanel: true, showSearchBox: false, downPanelInRight: true, })); // automatically import all files ending in *.stories.js const req = require.context('../stories', true, /.stories.js$/); function loadStories() { req.keys().forEach(filename => req(filename)); } configure(loadStories, module);