setup React Storybook; add example story for LoadingIndicator component
This commit is contained in:
parent
77efdfa110
commit
71e7537330
4 changed files with 29 additions and 4 deletions
14
storybook/config.js
Normal file
14
storybook/config.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { configure } from '@kadira/storybook';
|
||||
import React from 'react';
|
||||
import { storiesOf, action } from '@kadira/storybook';
|
||||
|
||||
window.storiesOf = storiesOf;
|
||||
window.action = action;
|
||||
window.React = React;
|
||||
|
||||
function loadStories () {
|
||||
require('./stories/loading_indicator.story.jsx');
|
||||
// You can require as many stories as you need.
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
Loading…
Add table
Add a link
Reference in a new issue