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