UNPKG

xchain-components

Version:
17 lines (14 loc) 546 B
/* @flow */ /* eslint react/jsx-filename-extension: 0 */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withInfo } from '@storybook/addon-info'; import XInput from 'components/XInput'; export default storiesOf('XInput', module) .addDecorator(withInfo) .add('with Icon', () => ( <XInput focus placeholder="Input" iconName="user" /> )).add('with placeholder', () => ( <XInput focus placeholder="Input" onChangeOfValue={action('clicked')}/> ));