Skip to content

Commit

Permalink
publish storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Oct 21, 2024
1 parent 1b23b5d commit 23f1a8a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion apps/docs/src/stories/Skeleton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Skeleton, SkeletonProps } from '@sopt-makers/ui';
import { Skeleton, SkeletonProps, Button as MDSButton, Toggle } from '@sopt-makers/ui';
import { Meta, StoryObj } from '@storybook/react';

const meta: Meta = {
title: 'Components/Skeleton',
component: Skeleton,
tags: ['autodocs'],
};

export default meta;
Expand All @@ -19,3 +20,18 @@ export const Circular: StoryObj<SkeletonProps> = {
return <Skeleton width={40} height={40} variant='circular' />;
},
};

export const Button: StoryObj<SkeletonProps> = {
render: () => {
return (
<div style={{ display: 'flex', flexDirection: 'column', gap: '10px' }}>
<Skeleton>
<MDSButton>버튼버튼버튼</MDSButton>
</Skeleton>
<Skeleton>
<Toggle />
</Skeleton>
</div>
);
},
};

0 comments on commit 23f1a8a

Please sign in to comment.