mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 17:39:55 +08:00
feat(component): add storybook (#5079)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { Meta, StoryFn } from '@storybook/react';
|
||||
|
||||
import {
|
||||
AnimatedCollectionsIcon,
|
||||
type CollectionsIconProps,
|
||||
} from './collections-icon';
|
||||
|
||||
export default {
|
||||
title: 'UI/Lottie/Collection Icons',
|
||||
component: AnimatedCollectionsIcon,
|
||||
} satisfies Meta<typeof AnimatedCollectionsIcon>;
|
||||
|
||||
const Template: StoryFn<CollectionsIconProps> = args => (
|
||||
<AnimatedCollectionsIcon {...args} />
|
||||
);
|
||||
|
||||
export const Default: StoryFn<CollectionsIconProps> = Template.bind(undefined);
|
||||
Default.args = {};
|
||||
@@ -0,0 +1,15 @@
|
||||
import type { Meta, StoryFn } from '@storybook/react';
|
||||
|
||||
import { AnimatedDeleteIcon, type DeleteIconProps } from './delete-icon';
|
||||
|
||||
export default {
|
||||
title: 'UI/Lottie/Delete Icon',
|
||||
component: AnimatedDeleteIcon,
|
||||
} satisfies Meta<typeof AnimatedDeleteIcon>;
|
||||
|
||||
const Template: StoryFn<DeleteIconProps> = args => (
|
||||
<AnimatedDeleteIcon {...args} />
|
||||
);
|
||||
|
||||
export const Default: StoryFn<DeleteIconProps> = Template.bind(undefined);
|
||||
Default.args = {};
|
||||
Reference in New Issue
Block a user