npm i --save-dev @blueeast/bluerain-storybook-addon
import '@blueeast/bluerain-storybook-addon';
import React from 'react';
import { configure, addDecorator } from '@storybook/react';
import { BlueRainDecorator } from '@blueeast/bluerain-storybook-addon';
const BRConfigs = require('../bluerain');
addDecorator(BlueRainDecorator(BRConfigs));
const req = require.context('../src', true, /.stories.tsx$/);
function loadStories() {
req.keys().forEach((filename) => req(filename));
}
configure(loadStories, module);