From b5929a968548f55b9b1035803c57fdd21f755e78 Mon Sep 17 00:00:00 2001 From: hamo-o Date: Thu, 22 Aug 2024 18:09:53 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Button,=20TextButton=20as=20prop=20?= =?UTF-8?q?=EC=93=B0=EC=9D=B8=20=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wow-ui/src/components/Button/Button.stories.tsx | 2 +- .../wow-ui/src/components/TextButton/TextButton.stories.tsx | 2 +- packages/wow-ui/src/components/TextButton/index.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/wow-ui/src/components/Button/Button.stories.tsx b/packages/wow-ui/src/components/Button/Button.stories.tsx index 6bc5a34f..8905df41 100644 --- a/packages/wow-ui/src/components/Button/Button.stories.tsx +++ b/packages/wow-ui/src/components/Button/Button.stories.tsx @@ -26,7 +26,7 @@ const meta = { type: "text", }, }, - as: { + asProp: { description: "버튼을 구성할 HTML 태그의 종류를 나타냅니다.", table: { type: { summary: "ElementType" }, diff --git a/packages/wow-ui/src/components/TextButton/TextButton.stories.tsx b/packages/wow-ui/src/components/TextButton/TextButton.stories.tsx index 8afd64e3..9e38c491 100644 --- a/packages/wow-ui/src/components/TextButton/TextButton.stories.tsx +++ b/packages/wow-ui/src/components/TextButton/TextButton.stories.tsx @@ -19,7 +19,7 @@ const meta = { type: "text", }, }, - as: { + asProp: { description: "텍스트 버튼을 구성할 HTML 태그의 종류를 나타냅니다.", table: { type: { summary: "ElementType" }, diff --git a/packages/wow-ui/src/components/TextButton/index.tsx b/packages/wow-ui/src/components/TextButton/index.tsx index 30d1b19a..a2db2421 100644 --- a/packages/wow-ui/src/components/TextButton/index.tsx +++ b/packages/wow-ui/src/components/TextButton/index.tsx @@ -53,7 +53,7 @@ type ButtonComponent = ( const TextButton: ButtonComponent & { displayName?: string } = forwardRef( ( { - as, + asProp, text, disabled = false, size = "lg", @@ -66,7 +66,7 @@ const TextButton: ButtonComponent & { displayName?: string } = forwardRef( }: ButtonProps, ref?: PolymorphicRef ) => { - const Component = as || "button"; + const Component = asProp || "button"; const { pressed,