diff --git a/src/components/inputs/input-field/inputField.tsx b/src/components/inputs/input-field/inputField.tsx index b3cc2edd..681d0b9a 100644 --- a/src/components/inputs/input-field/inputField.tsx +++ b/src/components/inputs/input-field/inputField.tsx @@ -23,6 +23,7 @@ interface InputProps extends React.InputHTMLAttributes { maxChars?: number initialCounter?: number defaultValue?: number | undefined + customIcon?: JSX.Element } export const MbInput = forwardRef( @@ -44,6 +45,7 @@ export const MbInput = forwardRef( defaultValue, inputSize = ESize.MEDIUM, onChange, + customIcon, ...restProps }, ref @@ -134,6 +136,7 @@ export const MbInput = forwardRef( )} )} + {!!customIcon && !hasIcon && customIcon} {maxChars ? ( + ), disabled: false, placeholder: 'Placeholder', type: 'text',