Skip to content

Commit

Permalink
Add InputTextField feedbackColor
Browse files Browse the repository at this point in the history
  • Loading branch information
cause38 committed Oct 23, 2024
1 parent 700a119 commit f29266d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export const Default = (props: InputTextFieldProps) => {
placeholder='placeholder'
value={currentValue}
onChange={onChangeHandler}
feedback={'test'}
feedbackColor={'gray-06'}
required
{...rest}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/core/components/Input/InputTextField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const InputTextField = forwardRef(
label,
regCallback,
feedback,
feedbackColor,
...props
}: InputTextFieldProps,
ref: React.ComponentPropsWithRef<'input'>['ref'],
Expand Down Expand Up @@ -50,6 +51,7 @@ const InputTextField = forwardRef(
readOnly={readOnly}
disabled={disabled}
feedback={feedback}
feedbackColor={feedbackColor}
error={error}
sub={sub}
inputComponent={
Expand Down
1 change: 1 addition & 0 deletions src/core/components/Input/InputTextField/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export interface InputTextFieldProps
| 'readOnly'
| 'disabled'
| 'sub'
| 'feedbackColor'
>,
Pick<UseInputProps, 'regCallback'> {}

0 comments on commit f29266d

Please sign in to comment.