From 2417830543e925185e489375da169489dd8f1a59 Mon Sep 17 00:00:00 2001 From: Bibazavr Date: Tue, 2 Apr 2024 10:35:06 +0300 Subject: [PATCH] feat: add leftIcon for InputField #163 Signed-off-by: Bibazavr --- packages/core/src/inputs/components/InputField/InputField.tsx | 2 ++ packages/core/src/inputs/components/InputField/types.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/core/src/inputs/components/InputField/InputField.tsx b/packages/core/src/inputs/components/InputField/InputField.tsx index ee7600ec2..46165c821 100644 --- a/packages/core/src/inputs/components/InputField/InputField.tsx +++ b/packages/core/src/inputs/components/InputField/InputField.tsx @@ -37,6 +37,7 @@ const InputField = forwardRef((props, ref) => { style, title, subtitle, + leftIcon, rightIcon, type = IInputsTypes.default, disabled = false, @@ -105,6 +106,7 @@ const InputField = forwardRef((props, ref) => { getPadding(), textInputContainerStyle, ]}> + {leftIcon} ; textInputContainerStyle?: StyleProp; + leftIcon?: ReactElement; rightIcon?: ReactElement; type?: IInputsTypes; disabled?: boolean;