export interface InterfaceFormControlProps { /** * If provided, this prop is passed to its children. */ id?: string; /** * If true, this prop is passed to its children. */ isInvalid?: boolean; /** * If true, this prop is passed to its children. */ isRequired?: boolean; /** * If true, this prop is passed to its children. */ isDisabled?: boolean; /** * If true, this prop is passed to its children. */ isReadOnly?: boolean; } export interface IFormControlLabelProps { htmlFor?: string; } export type IFormControlComponentType = React.ForwardRefExoticComponent & InterfaceFormControlProps> & { Error: React.ForwardRefExoticComponent> & { Text: React.ForwardRefExoticComponent>; Icon: React.ForwardRefExoticComponent>; }; Label: React.ForwardRefExoticComponent> & { Text: React.ForwardRefExoticComponent>; }; Helper: React.ForwardRefExoticComponent> & { Text: React.ForwardRefExoticComponent>; }; }; export type IFormControlProps = InterfaceFormControlProps; type InnerForwardRefExoticComponent = React.PropsWithoutRef & React.RefAttributes; export {};