import React from 'react'; import { storiesOf } from '@storybook/react'; import { Ripple } from '../src'; const lightBox: React.CSSProperties = { overflow: 'hidden', width: '360px', height: '100px', backgroundColor: '#f7f7f7', position: 'relative', }; const darkBox: React.CSSProperties = { ...lightBox, backgroundColor: '#2d2926', }; const greenRoundBox: React.CSSProperties = { ...lightBox, height: '60px', width: '120px', backgroundColor: '#00653e', borderRadius: '50px', }; storiesOf('Ripple', module) .add('dark', () => ( {({ ripple, eventHandlers, mergeEventHandlers }) => { return (
{ripple}
); }}
)) .add('light', () => ( {({ ripple, eventHandlers, mergeEventHandlers }) => { return (
{ripple}
); }}
)) .add('round', () => ( {({ ripple, eventHandlers, mergeEventHandlers }) => { return (
{ripple}
); }}
)) .add('merge event handlers', () => ( {({ ripple, eventHandlers, mergeEventHandlers }) => { return (
console.log('clicked') })}> {ripple}
); }}
));