Skip to content

Commit

Permalink
Created Password story
Browse files Browse the repository at this point in the history
  • Loading branch information
damiano-carradori committed Mar 9, 2019
1 parent 1659da3 commit 393916b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Password/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 Password from './Password';
import { FormContextProvider } from '../Form/FormContext';

storiesOf('Password', module)
.addDecorator(storyFn => <FormContextProvider onSubmit={console.log}>{storyFn()}</FormContextProvider>)
.add('default', () => (
<Password name="pass" value="test"/>
));

0 comments on commit 393916b

Please sign in to comment.