Skip to content

Commit

Permalink
📖 Add dateRange to MonthCalendar stories
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Oct 20, 2023
1 parent 67150cc commit ac18c53
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion packages/docs/stories/MonthCalendar.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ import './MonthCalendar.css';
import type { Meta, StoryObj } from '@storybook/react';

const meta: Meta<typeof MonthCalendar> = {
argTypes: {
dateRangeEnd: {
control: 'date',
description: '(optional) end date of current date range',
},
dateRangeStart: {
control: 'date',
description: '(optional) start date of current date range',
},
},
component: MonthCalendar,
parameters: {
docs: {
Expand All @@ -31,9 +41,18 @@ export const ThisMonthsCalendar: Story = {
},
};

export const February1985MonthCalendar: Story = {
export const February1985Calendar: Story = {
args: {
className: 'february-month-calendar-story',
month: 181,
},
};

export const DateRangeDiwaliCalendar: Story = {
args: {
className: 'date-range-month-calendar-story',
dateRangeEnd: new Date(2023, 10, 14),
dateRangeStart: new Date(2023, 10, 9),
month: getMonthFromDate(new Date(2023, 10, 1)),
},
};

0 comments on commit ac18c53

Please sign in to comment.