Skip to content

Commit

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

export type ReactComponentClass<P = any> = ComponentClass<P, any> | ((props: P) => JSX.Element);
Expand Down

0 comments on commit d4ab51f

Please sign in to comment.