bluerain-storybook-addon
v1.0.0
Published
<p align="center"> <h1 style="text-align:center;">BlueRain Storybook Addon</h1> </p>
Downloads
4
Readme
Getting started
Installation:
npm i --save-dev @blueeast/bluerain-storybook-addon
Add to project
import '@blueeast/bluerain-storybook-addon';
Usage
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);