Skip to content

Commit

Permalink
docs: SliderButton 설명란 수정 및 스토리북 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
CheeseB committed Apr 26, 2024
1 parent 8873631 commit 9da4ae6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/SliderButton.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SliderButton

## Description

Slider Button
This component represents a slider button used for navigating left or right within a slider or carousel interface. It provides functionality for the user to move between different items in the slider by clicking on the respective left or right button.

## Anatomy

Expand All @@ -20,3 +20,7 @@ import { SliderButton } from 'ggf-ui';
```tsx
<SliderButton onClick={onClick} type='right' />
```

## Storybook

[https://661f5982ddc662c8c9a12d6b-myronoygng.chromatic.com/?path=/story/buttons-sliderbutton--example&globals=backgrounds.value:!hex(333333)](<https://661f5982ddc662c8c9a12d6b-myronoygng.chromatic.com/?path=/story/buttons-sliderbutton--example&globals=backgrounds.value:!hex(333333)>)
15 changes: 15 additions & 0 deletions src/stories/SliderButton.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import SliderButton from '@/components/SliderButton';

import type { Meta, StoryObj } from '@storybook/react';

const meta = {
title: 'Buttons/SliderButton',
component: SliderButton,
} satisfies Meta<typeof SliderButton>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Example: Story = {
args: {},
};

0 comments on commit 9da4ae6

Please sign in to comment.