mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
- move to `component/ui`
- add `AFFiNEDatePicker` & `BlocksuiteDatePicker` story
- inline mode support
- responsive support
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/toeverything/AFFiNE/assets/39363750/320bef49-380f-40a2-b3b2-4b74dd2d8da4">
<img alt="" src="https://github.com/toeverything/AFFiNE/assets/39363750/fc9e7808-02fe-49a1-aa78-aea254fb1f9d">
</picture>
16 lines
398 B
TypeScript
16 lines
398 B
TypeScript
import type { Meta, StoryFn } from '@storybook/react';
|
|
|
|
import { BlocksuiteDatePicker } from './blocksuite-date-picker';
|
|
|
|
export default {
|
|
title: 'UI/Date Picker/Blocksuite Date Picker',
|
|
} satisfies Meta<typeof BlocksuiteDatePicker>;
|
|
|
|
export const Basic: StoryFn<typeof BlocksuiteDatePicker> = () => {
|
|
return (
|
|
<div style={{ width: 300 }}>
|
|
<BlocksuiteDatePicker />
|
|
</div>
|
|
);
|
|
};
|