UNPKG

react-proforma

Version:

React Proforma helps you build simple to complex web forms with ease in React. -- Simplicity where you want it. Flexibility where you need it.

23 lines (22 loc) 1.01 kB
import React from 'react'; import { IndexableObjectType } from './types'; interface ISubmitProps { component?: React.ComponentType<any>; textNotSubmitting?: string; textSubmitting?: string; style?: { [key: string]: string; }; } /** * When placed inside a form element (or React Proforma's Form component), * will submit the form data. Its display text will change from "Submit" to * "Submitting..." by default when the form is submitted, but these are configurable. * * @param {React.ComponentType=} [component] - Custom component to be used instead of a standard button. * @param {string=} [textNotSubmitting] - Text to be displayed when the form is not in a submitting state. * @param {string=} [textSubmitting] - Text to be displayed when the form is in a submitting state. * @returns {JSX.Element} JSX.Element */ export declare const Submit: React.FunctionComponent<ISubmitProps & IndexableObjectType & React.ComponentProps<'button'>>; export {};