insomnia/packages/insomnia-components/.storybook/preview.js
2020-04-26 13:33:39 -07:00

10 lines
380 B
JavaScript

import { configure, addDecorator } from '@storybook/react';
import { withContexts } from '@storybook/addon-contexts/react';
import { contexts } from './configs/contexts';
import { withInfo } from '@storybook/addon-info';
addDecorator(withContexts(contexts));
addDecorator(withInfo({ inline: true }));
configure(require.context('../components', true, /\.stories\.js$/), module);