Skip to content

Commit

Permalink
Created File story
Browse files Browse the repository at this point in the history
  • Loading branch information
damiano-carradori committed Mar 9, 2019
1 parent 862e10e commit 1659da3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/File/story.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
import File from './File';
import { FormContextProvider } from '../Form/FormContext';

storiesOf('File', module)
.addDecorator(storyFn => <FormContextProvider onSubmit={console.log}>{storyFn()}</FormContextProvider>)
.add('with text', () => (
<File name="test" value="test" label="test"/>
));

0 comments on commit 1659da3

Please sign in to comment.