-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat : tag 컴포넌트 구현 * feat : 추가된 컬러 토큰 반영 * feat: blue 일 때 primary 토큰으로 수정 * feat: 리뷰 반영 & changest 추가
- Loading branch information
Showing
15 changed files
with
363 additions
and
5 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,7 @@ | ||
--- | ||
"wowds-tokens": patch | ||
"wowds-theme": patch | ||
"wowds-ui": patch | ||
--- | ||
|
||
Tag 컴포넌트를 구현합니다. |
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
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
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
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
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
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
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
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
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,91 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import Tag from "@/components/Tag"; | ||
|
||
const meta = { | ||
title: "UI/Tag", | ||
component: Tag, | ||
tags: ["autodocs"], | ||
parameters: { | ||
componentSubtitle: "태그 컴포넌트", | ||
a11y: { | ||
config: { | ||
rules: [{ id: "color-contrast", enabled: false }], | ||
}, | ||
}, | ||
}, | ||
argTypes: { | ||
children: { | ||
description: "태그의 자식 요소.", | ||
table: { | ||
type: { summary: "ReactNode" }, | ||
}, | ||
control: { | ||
type: "text", | ||
}, | ||
}, | ||
variant: { | ||
description: "태그의 종류를 나타냅니다.", | ||
table: { | ||
type: { summary: "outline | solid1 | solid2" }, | ||
defaultValue: { summary: "outline" }, | ||
}, | ||
control: { | ||
type: "radio", | ||
options: ["outline", "solid1", "solid2"], | ||
}, | ||
}, | ||
color: { | ||
description: "태그의 색상을 나타냅니다.", | ||
table: { | ||
type: { summary: "red | blue | green | yellow | grey" }, | ||
}, | ||
control: { | ||
type: "radio", | ||
options: ["red", "blue", "green", "yellow", "grey"], | ||
}, | ||
}, | ||
style: { | ||
description: "태그의 커스텀 스타일을 나타냅니다.", | ||
table: { | ||
type: { summary: "CSSProperties" }, | ||
}, | ||
control: false, | ||
}, | ||
className: { | ||
description: "태그에 전달하는 커스텀 클래스를 나타냅니다.", | ||
table: { | ||
type: { summary: "string" }, | ||
}, | ||
control: false, | ||
}, | ||
}, | ||
} satisfies Meta<typeof Tag>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Outline: Story = { | ||
args: { | ||
children: "Tag", | ||
variant: "outline", | ||
color: "blue", | ||
}, | ||
}; | ||
|
||
export const Solid1: Story = { | ||
args: { | ||
children: "Tag", | ||
variant: "solid1", | ||
color: "blue", | ||
}, | ||
}; | ||
|
||
export const Solid2: Story = { | ||
args: { | ||
children: "Tag", | ||
variant: "solid2", | ||
color: "blue", | ||
}, | ||
}; |
Oops, something went wrong.