UNPKG

rehance-forms

Version:
22 lines (21 loc) 683 B
import * as React from "react"; import { Omit } from "./types"; import { ScopeContext } from "./ScopeContext"; export declare type SubmitButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "disabled" | "form"> & { disabledOnError?: boolean | string[]; disabledUntilChanged?: boolean | string[]; disabled?: boolean | { (scope: ScopeContext): boolean; }; }; export declare class SubmitButton extends React.PureComponent<SubmitButtonProps> { static defaultProps: Partial<SubmitButtonProps>; /** * Handle the button click. */ private handleClick; /** * Render the button. */ render(): JSX.Element; }