From d4ab51fe3eae86a86f6c59cd49f73160816a750d Mon Sep 17 00:00:00 2001 From: amitbadala Date: Fri, 20 Oct 2023 12:22:03 +0530 Subject: [PATCH] Add inputComponent to normalised fields --- lib/ts/types.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ts/types.ts b/lib/ts/types.ts index 1aa48a340..5785bdf77 100644 --- a/lib/ts/types.ts +++ b/lib/ts/types.ts @@ -289,6 +289,11 @@ export type NormalisedFormField = { * Moves focus to the input element when it mounts */ autofocus?: boolean; + + /* + * Ability to add custom components + */ + inputComponent?: React.FC; }; export type ReactComponentClass

= ComponentClass | ((props: P) => JSX.Element);