We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a424c9 commit 7965f71Copy full SHA for 7965f71
src/components/input/Input.tsx
@@ -11,6 +11,7 @@ interface GeneralInputProps {
11
onChange?: (value: string) => void;
12
value?: string;
13
readOnly?: boolean; //입력방지 추가
14
+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
15
}
16
17
interface SignInputProps extends Omit<GeneralInputProps, "type"> {
@@ -109,6 +110,7 @@ export default function Input(props: InputProps) {
109
110
);
111
setIsInvalid(true);
112
}}
113
+ onKeyDown={rest.onKeyDown}
114
className={clsx(
115
"peer flex h-[50px] w-full max-w-[520px] px-2 sm:px-4 py-2 rounded-lg transition-colors duration-200",
116
"border border-[var(--color-gray3)] focus:border-[var(--primary)] focus:ring-0 focus:outline-none",
0 commit comments