From a2f1d7ed10e4bed046dd2da295b153e967ee67ce Mon Sep 17 00:00:00 2001 From: amitbadala Date: Fri, 20 Oct 2023 11:33:22 +0530 Subject: [PATCH] Add inputComponent to exposed types --- lib/ts/types.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ts/types.ts b/lib/ts/types.ts index 8399585b5..1aa48a340 100644 --- a/lib/ts/types.ts +++ b/lib/ts/types.ts @@ -13,6 +13,7 @@ * under the License. */ +import type { InputProps } from "./recipe/emailpassword/components/library/input"; import type { BaseRecipeModule } from "./recipe/recipeModule/baseRecipeModule"; import type { NormalisedConfig as NormalisedRecipeModuleConfig } from "./recipe/recipeModule/types"; import type { TranslationFunc, TranslationStore } from "./translation/translationHelpers"; @@ -234,6 +235,11 @@ export type FormField = FormFieldBaseConfig & { * Whether the field is optional or not. */ optional?: boolean; + + /* + * Ability to add custom components + */ + inputComponent?: React.FC; }; export type APIFormField = {