Skip to content

Commit

Permalink
Add inputComponent to exposed types
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbadala committed Oct 20, 2023
1 parent 78dc12e commit a2f1d7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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<InputProps>;
};

export type APIFormField = {
Expand Down

0 comments on commit a2f1d7e

Please sign in to comment.