From f29266d9a21affc43412e2495904fb855f7df6c2 Mon Sep 17 00:00:00 2001 From: JinJu Date: Wed, 23 Oct 2024 18:11:42 +0900 Subject: [PATCH] Add InputTextField feedbackColor --- .../components/Input/InputTextField/InputTextField.stories.tsx | 2 ++ src/core/components/Input/InputTextField/index.tsx | 2 ++ src/core/components/Input/InputTextField/types/index.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/src/core/components/Input/InputTextField/InputTextField.stories.tsx b/src/core/components/Input/InputTextField/InputTextField.stories.tsx index 3fbf9bc..ea7b374 100644 --- a/src/core/components/Input/InputTextField/InputTextField.stories.tsx +++ b/src/core/components/Input/InputTextField/InputTextField.stories.tsx @@ -54,6 +54,8 @@ export const Default = (props: InputTextFieldProps) => { placeholder='placeholder' value={currentValue} onChange={onChangeHandler} + feedback={'test'} + feedbackColor={'gray-06'} required {...rest} /> diff --git a/src/core/components/Input/InputTextField/index.tsx b/src/core/components/Input/InputTextField/index.tsx index 59de2dc..a391354 100644 --- a/src/core/components/Input/InputTextField/index.tsx +++ b/src/core/components/Input/InputTextField/index.tsx @@ -14,6 +14,7 @@ const InputTextField = forwardRef( label, regCallback, feedback, + feedbackColor, ...props }: InputTextFieldProps, ref: React.ComponentPropsWithRef<'input'>['ref'], @@ -50,6 +51,7 @@ const InputTextField = forwardRef( readOnly={readOnly} disabled={disabled} feedback={feedback} + feedbackColor={feedbackColor} error={error} sub={sub} inputComponent={ diff --git a/src/core/components/Input/InputTextField/types/index.ts b/src/core/components/Input/InputTextField/types/index.ts index 5acba96..79d01e7 100644 --- a/src/core/components/Input/InputTextField/types/index.ts +++ b/src/core/components/Input/InputTextField/types/index.ts @@ -17,5 +17,6 @@ export interface InputTextFieldProps | 'readOnly' | 'disabled' | 'sub' + | 'feedbackColor' >, Pick {}