mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
26 lines
518 B
TypeScript
26 lines
518 B
TypeScript
import type { StoryFn } from '@storybook/react';
|
|
|
|
import { AffineLoading } from '../components/affine-loading';
|
|
|
|
export default {
|
|
title: 'AFFiNE/Loading',
|
|
component: AffineLoading,
|
|
};
|
|
|
|
export const Default: StoryFn = ({ width, loop, autoplay, autoReverse }) => (
|
|
<div
|
|
style={{
|
|
width: width,
|
|
height: width,
|
|
}}
|
|
>
|
|
<AffineLoading loop={loop} autoplay={autoplay} autoReverse={autoReverse} />
|
|
</div>
|
|
);
|
|
Default.args = {
|
|
width: 100,
|
|
loop: true,
|
|
autoplay: true,
|
|
autoReverse: true,
|
|
};
|