@mantine/modals
Version:
Modals manager based on Mantine components
16 lines (15 loc) • 788 B
TypeScript
import { ButtonProps, GroupProps } from '@mantine/core';
import { ConfirmLabels } from './context';
export interface ConfirmModalProps {
id?: string;
children?: React.ReactNode;
onCancel?: () => void;
onConfirm?: () => void;
closeOnConfirm?: boolean;
closeOnCancel?: boolean;
cancelProps?: ButtonProps & React.ComponentPropsWithoutRef<'button'> & Record<`data-${string}`, any>;
confirmProps?: ButtonProps & React.ComponentPropsWithoutRef<'button'> & Record<`data-${string}`, any>;
groupProps?: GroupProps;
labels?: ConfirmLabels;
}
export declare function ConfirmModal({ id, cancelProps, confirmProps, labels, closeOnConfirm, closeOnCancel, groupProps, onCancel, onConfirm, children, }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;