apphouse
Version:
Component library for React that uses observable state management and theme-able components.
30 lines (29 loc) • 818 B
TypeScript
import { FormV2 as FormModel } from '../../models/Form/FormV2';
import React from 'react';
export interface ISignInFields {
email: string;
password: string;
}
export type SignInFormType = FormModel;
export interface SignInFormProps {
/**
* A function that is called when the form is submitted
* @param formData
* @returns void
*/
onSubmit: (formData: ISignInFields) => void;
/**
* An error message to be displayed if the form has an error
* on submission
*/
errorMessage?: React.ReactNode;
/**
* A reason to be prompted the sign in form
*/
reason?: string;
/**
* content to be displayed below the form and above the submit button
*/
children?: React.ReactNode;
}
export declare const SignInForm: React.FC<SignInFormProps>;