@roo-ui/components
Version:
18 lines (15 loc) • 500 B
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withDocs } from 'storybook-readme';
import { text } from '@storybook/addon-knobs/react';
import BackgroundImage from './BackgroundImage';
import README from './README.md';
storiesOf('Components|BackgroundImage', module)
.addDecorator(withDocs(README))
.add('default', () => (
<BackgroundImage
src={text('URL', '//picsum.photos/1280/800?image=374')}
height="32rem"
width="100%"
/>
));