fix(component): affine loading (#1887)

This commit is contained in:
Himself65
2023-04-11 23:48:42 -05:00
committed by GitHub
parent 5535440c55
commit 9dcb96839b
7 changed files with 91 additions and 125 deletions
@@ -7,4 +7,19 @@ export default {
component: AffineLoading,
};
export const Default: StoryFn = () => <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,
};