Skip to content

Commit

Permalink
fix: Button, TextButton as prop 쓰인 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Aug 22, 2024
1 parent 0ccac05 commit b5929a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/wow-ui/src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const meta = {
type: "text",
},
},
as: {
asProp: {
description: "버튼을 구성할 HTML 태그의 종류를 나타냅니다.",
table: {
type: { summary: "ElementType" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const meta = {
type: "text",
},
},
as: {
asProp: {
description: "텍스트 버튼을 구성할 HTML 태그의 종류를 나타냅니다.",
table: {
type: { summary: "ElementType" },
Expand Down
4 changes: 2 additions & 2 deletions packages/wow-ui/src/components/TextButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type ButtonComponent = <C extends ElementType = "button">(
const TextButton: ButtonComponent & { displayName?: string } = forwardRef(
<C extends ElementType = "button">(
{
as,
asProp,
text,
disabled = false,
size = "lg",
Expand All @@ -66,7 +66,7 @@ const TextButton: ButtonComponent & { displayName?: string } = forwardRef(
}: ButtonProps<C>,
ref?: PolymorphicRef<C>
) => {
const Component = as || "button";
const Component = asProp || "button";

const {
pressed,
Expand Down

0 comments on commit b5929a9

Please sign in to comment.