mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 05:29:08 +08:00
17 lines
499 B
TypeScript
17 lines
499 B
TypeScript
import { AFFiNEDatePicker } from '@affine/component/date-picker';
|
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
import { useState } from 'react';
|
|
|
|
export default {
|
|
title: 'AFFiNE/AFFiNEDatePicker',
|
|
component: AFFiNEDatePicker,
|
|
parameters: {
|
|
chromatic: { disableSnapshot: true },
|
|
},
|
|
} satisfies Meta;
|
|
|
|
export const Default: StoryFn = () => {
|
|
const [value, setValue] = useState<string>(new Date().toString());
|
|
return <AFFiNEDatePicker value={value} onChange={setValue} />;
|
|
};
|