feat: add CalendarHeader and its Storybook, need to resize

This commit is contained in:
doprz
2024-03-06 13:49:32 -06:00
parent 37b5101e44
commit 23276e5c7c
4 changed files with 86 additions and 31 deletions

View File

@@ -2,24 +2,17 @@ import { Meta, StoryObj } from '@storybook/react';
import CalendarGrid from 'src/views/components/common/CalendarGrid/CalendarGrid';
const meta = {
title: 'Components/Common/CalendarGrid',
component: CalendarGrid,
title: 'Components/Common/Calendar',
component: Calendar,
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered',
tags: ['autodocs'],
},
tags: ['autodocs'],
argTypes: {
saturday: { control: 'text' },
sunday: { control: 'text' },
},
} satisfies Meta<typeof CalendarGrid>;
} satisfies Meta<typeof Calendar>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
saturday: true,
sunday: true,
},
};
export const Default: Story = {};