react-confirm-box
Version:
A callable react confirm alert box
17 lines (16 loc) • 426 B
TypeScript
declare type ClassNames = {
container?: string;
buttons?: string;
confirmButton?: string;
cancelButton?: string;
};
export declare type Options = {
labels?: {
confirmable: string;
cancellable: string;
};
classNames?: ClassNames;
closeOnOverlayClick?: boolean;
render?: (message: string, onConfirm: () => void, onCancel: () => void) => Element;
};
export {};