Skip to content

Commit

Permalink
feat(DatePickerE): Add additional stories
Browse files Browse the repository at this point in the history
  • Loading branch information
jpveooys committed Dec 1, 2021
1 parent 637086e commit 4468e51
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ const Template: Story<DatePickerEProps> = (args) => <DatePickerE {...args} />

export const Default = Template.bind({})

export const WithExistingValue = Template.bind({})
WithExistingValue.storyName = 'With existing value'
WithExistingValue.args = {
startDate: parseISO('2021-12-15'),
}

export const CustomFormat = Template.bind({})
CustomFormat.storyName = 'Custom format'
CustomFormat.args = {
Expand Down Expand Up @@ -74,6 +80,14 @@ Range.args = {
isRange: true,
}

export const RangeWithExistingValue = Template.bind({})
RangeWithExistingValue.storyName = 'Range, with existing value'
RangeWithExistingValue.args = {
isRange: true,
startDate: parseISO('2021-12-05'),
endDate: parseISO('2021-12-15'),
}

export const WithFormik: Story<DatePickerEProps> = (props) => {
interface Data {
startDate: Date
Expand Down

0 comments on commit 4468e51

Please sign in to comment.