confirmly-popup.js
Version:
A lightweight javascript confirmation popup with support for Bootstrap, Tailwind, and Material Design.
18 lines (17 loc) • 404 B
TypeScript
import Popper from '@popperjs/core';
export interface PopperOptions {
template?: string;
buttonClasses?: {
confirm: string;
cancel: string;
};
buttonContents?: {
confirm: string;
cancel: string;
};
defaultPlacement?: Popper.Placement;
targetElement: HTMLElement;
onConfirm?: () => void;
onCancel?: () => void;
showError: boolean;
}