import React from 'react' ; import { storiesOf } from '@storybook/react' ; import { object } from '@storybook/addon-knobs' ; import { Loading } from '../Loading' ; const defaultStyle = { padding : 20 } ; storiesOf ( 'Loading' , module ) . add ( 'basic usage' , ( ) => ( < Loading style = { object ( 'style' , defaultStyle ) } / > ) ) ;