feat: add date picker (#2644)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
JimmFlyandhimself65 authored and GitHub committed 2023-06-08 17:55:16 +08:00
1 parent bedf838fe5
commit 29d8f61c90
15 files changed
+706 -22

No files matched your search

@@ -0,0 +1,13 @@
import { AFFiNEDatePicker } from '@affine/component/date-picker';
import type { StoryFn } from '@storybook/react';
import { useState } from 'react';
export default {
title: 'AFFiNE/AFFiNEDatePicker',
component: AFFiNEDatePicker,
};
export const Default: StoryFn = () => {
const [value, setValue] = useState<string>(new Date().toString());
return <AFFiNEDatePicker value={value} onChange={setValue} />;
};