mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
feat(component): add storybook (#5079)
This commit is contained in:
16
packages/frontend/component/src/ui/empty/empty.stories.tsx
Normal file
16
packages/frontend/component/src/ui/empty/empty.stories.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { Meta, StoryFn } from '@storybook/react';
|
||||
|
||||
import { Empty, type EmptyContentProps } from '.';
|
||||
|
||||
export default {
|
||||
title: 'UI/Empty',
|
||||
component: Empty,
|
||||
} satisfies Meta<typeof Empty>;
|
||||
|
||||
const Template: StoryFn<EmptyContentProps> = args => <Empty {...args} />;
|
||||
|
||||
export const Default: StoryFn<EmptyContentProps> = Template.bind(undefined);
|
||||
Default.args = {
|
||||
title: 'No Data',
|
||||
description: 'No Data',
|
||||
};
|
||||
Reference in New Issue
Block a user