apphouse
Version:
Component library for React that uses observable state management and theme-able components.
34 lines (33 loc) • 903 B
TypeScript
import { FormV2 as FormModel } from '../../models/Form/FormV2';
import React from 'react';
/**
* The fields that are used in the sign up form
*/
export interface ISignUpFields {
email: string;
password: string;
confirmPassword: string;
}
export type SignUpFormType = FormModel;
export interface SignUpFormProps {
/**
* A function that is called when the form is submitted
* @param formData
* @returns void
*/
onSubmit: (formData: ISignUpFields) => 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 up form
*/
reason?: string;
/**
* content to be displayed below the form and above the submit button
*/
children?: React.ReactNode;
}
export declare const SignUpForm: React.FC<SignUpFormProps>;