From c0109bd0434a24b88fedad99b003bf89cb753ef1 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Fri, 7 Jun 2024 22:33:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A7=88=EC=A7=80=EB=A7=89=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EB=A6=AC=EB=B7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wow-ui/src/components/Chip/Chip.stories.ts | 6 +++--- packages/wow-ui/src/components/Chip/index.tsx | 1 + packages/wow-ui/src/types/button.ts | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/wow-ui/src/components/Chip/Chip.stories.ts b/packages/wow-ui/src/components/Chip/Chip.stories.ts index 56c65e5f..6a6756d2 100644 --- a/packages/wow-ui/src/components/Chip/Chip.stories.ts +++ b/packages/wow-ui/src/components/Chip/Chip.stories.ts @@ -103,7 +103,7 @@ type Story = StoryObj; export const Default: Story = { args: { label: "Chip", - element: "button", + as: "button", clickable: true, }, }; @@ -112,7 +112,7 @@ export const DivChip: Story = { args: { label: "Chip", clickable: false, - element: "div", + as: "div", }, }; export const DisabledChip: Story = { @@ -120,7 +120,7 @@ export const DisabledChip: Story = { label: "Chip", clickable: true, disabled: true, - element: "button", + as: "button", }, }; diff --git a/packages/wow-ui/src/components/Chip/index.tsx b/packages/wow-ui/src/components/Chip/index.tsx index 830bb353..02df55f4 100644 --- a/packages/wow-ui/src/components/Chip/index.tsx +++ b/packages/wow-ui/src/components/Chip/index.tsx @@ -5,6 +5,7 @@ import type { ReactNode } from "react"; import { forwardRef, useEffect, useState } from "react"; import type { + AsProps, ButtonElementType, PolymorphicComponentProps, PolymorphicRef, diff --git a/packages/wow-ui/src/types/button.ts b/packages/wow-ui/src/types/button.ts index 3915f590..a5d71572 100644 --- a/packages/wow-ui/src/types/button.ts +++ b/packages/wow-ui/src/types/button.ts @@ -5,7 +5,6 @@ export type ButtonElementType = Extract; // 버튼의 주요한 HTML Attributes를 미리 정의한 ButtonProps 타입입니다. [https://www.w3schools.com/tags/tag_button.asp] export interface BasicButtonProps { - element?: ButtonElementType; /** * 버튼의 ID를 지정합니다. */