Skip to content

Commit

Permalink
(#0) InputPassword label 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
baegofda committed Dec 9, 2023
1 parent bb5dfa6 commit de7a0a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const meta = {
title: "core/Input/InputPassword",
component: InputPassword,
argTypes: {
label: {
control: "text",
description: "InputPassword Label",
},
regCallback: {
description: "Input RegEx",
},
Expand Down
3 changes: 2 additions & 1 deletion src/core/components/Input/InputPassword/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { InputPasswordProps } from "./types";

const InputPassword = forwardRef((
{
label = "비밀번호",
regCallback,
...props
}: InputPasswordProps,
Expand All @@ -25,7 +26,7 @@ const InputPassword = forwardRef((
return (
<InputBase
inputId = {id}
label = {"비밀번호"}
label = {label}
rootClassName = {rootClassName}
inputRootClassName = "h-[3.75rem]"
error = {error}
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Input/InputPassword/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { UseInputProps } from "../../hooks/useInput";

export interface InputPasswordProps
extends React.InputHTMLAttributes<HTMLInputElement>,
Pick<InputBaseProps<"div">, "rootClassName" | "error">,
Pick<InputBaseProps<"div">, "rootClassName" | "label" | "error">,
Pick<UseInputProps, "regCallback"> {}

0 comments on commit de7a0a0

Please sign in to comment.