import React from 'react' ; import { Meta , Story } from '@storybook/react' ; import { DateField , IProps } from './DateField' ; export default { title : 'Components/forms/DateField' , component : DateField } as Meta ; const Template = ( args ) => < DateField { ... args } / > ; export const DateFieldView = Template . bind ( { } ) ; DateFieldView . args = { id : 'date-field' , onChange : ( value ) => { alert ( value ) ; } } ;