bluerain-storybook-addon
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

BlueRain Storybook Addon

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);

Readme

Keywords

none

Package Sidebar

Install

npm i bluerain-storybook-addon

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

10.6 kB

Total Files

15

Last publish

Collaborators

  • bjavaid