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 = {