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,