-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4d4872
commit 5877528
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* eslint-disable storybook/story-exports */ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import Divider from "@/components/Divider"; | ||
|
||
const meta = { | ||
title: "UI/Divider", | ||
component: Divider, | ||
tags: ["autodocs"], | ||
parameters: { | ||
componentSubtitle: "디바이더 컴포넌트", | ||
}, | ||
argTypes: { | ||
type: { | ||
description: "라이트모드, 다크모드에 따라 디바이더의 색상이 달라집니다.", | ||
table: { | ||
type: { summary: '"light" | "dark"' }, | ||
defaultValue: { summary: "light" }, | ||
}, | ||
control: { | ||
type: "radio", | ||
options: ["light", "dark"], | ||
}, | ||
}, | ||
style: { | ||
description: "디바이더의 커스텀 스타일을 설정할 수 있습니다.", | ||
table: { | ||
type: { summary: "CSSProperties" }, | ||
defaultValue: { summary: "{}" }, | ||
}, | ||
control: { | ||
type: "object", | ||
}, | ||
}, | ||
}, | ||
} satisfies Meta<typeof Divider>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
args: {}, | ||
}; | ||
|
||
export const Dark: Story = { | ||
args: { | ||
type: "dark", | ||
}, | ||
}; |