UNPKG

sweetalert2-react-content

Version:

Official sweetalert2 enhancer adding support for React elements as content.

39 lines (38 loc) 712 B
export const mounts = [ { key: 'title', getter: (swal) => swal.getTitle(), }, { key: 'html', getter: (swal) => swal.getHtmlContainer(), }, { key: 'confirmButtonText', getter: (swal) => swal.getConfirmButton(), }, { key: 'denyButtonText', getter: (swal) => swal.getDenyButton(), }, { key: 'cancelButtonText', getter: (swal) => swal.getCancelButton(), }, { key: 'footer', getter: (swal) => swal.getFooter(), }, { key: 'closeButtonHtml', getter: (swal) => swal.getCloseButton(), }, { key: 'iconHtml', getter: (swal) => swal.getIconContent(), }, { key: 'loaderHtml', getter: (swal) => swal.getLoader(), }, ]