semantic-ui-react
Version:
The official Semantic-UI-React integration.
40 lines (30 loc) • 1.03 kB
TypeScript
import * as React from 'react';
import { ModalProps } from '../../modules/Modal';
export interface ConfirmProps extends ModalProps {
/** The cancel button text. */
cancelButton?: any;
/** The OK button text. */
confirmButton?: any;
/** The ModalContent text. */
content?: any;
/** The ModalHeader text. */
header?: any;
/**
* Called when the Modal is closed without clicking confirm.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onCancel?: (event: React.MouseEvent<HTMLAnchorElement>, data: ConfirmProps) => void;
/**
* Called when the OK button is clicked.
*
* @param {SyntheticEvent} event - React's original SyntheticEvent.
* @param {object} data - All props.
*/
onConfirm?: (event: React.MouseEvent<HTMLAnchorElement>, data: ConfirmProps) => void;
/** Whether or not the modal is visible. */
open?: boolean;
}
declare const Confirm: React.ComponentClass<ConfirmProps>;
export default Confirm;