import React, { useState } from 'react' import { StoryFn, Meta } from '@storybook/react' import Component from '.' import ObjectViewer from '../ObjectViewer' export default { title: 'Components/IVDatePicker', component: Component, parameters: { options: { enableShortcuts: false, }, }, } as Meta const Template: StoryFn = args => { const [value, setValue] = useState() return (
) } export const Default = Template.bind({}) Default.args = {} export const WithValue = Template.bind({}) WithValue.args = { value: new Date(2020, 5, 28), } export const Disabled = Template.bind({}) Disabled.args = { disabled: true, } export const MinDate = Template.bind({}) MinDate.args = { minDate: new Date(), }