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.

19 lines (18 loc) 887 B
import React from 'react'; import { IndexableObjectType } from './types'; export interface IResetProps { component?: React.ComponentType<any>; text?: string; } /** * Reset component executes the handleReset private method inside * the Proforma class. handleReset re-generates the internal * state object using the initialValues prop passed * to the Proforma component. * * @param {React.ComponentType=} [component] - Custom component to be used instead of a standard button. * @param {string=} [text=Reset] - Text to be displayed inside the button/custom component instead of "Reset". Note: your * custom component accesses this text through {props.children} inside your component's render. * @returns {JSX.Element} JSX.Element */ export declare const Reset: React.FunctionComponent<IResetProps & IndexableObjectType & React.ComponentProps<'input'>>;