Skip to content

Commit

Permalink
fix(types): add missing iconHtml
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Nov 4, 2019
1 parent 6e8a401 commit 6f7f316
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sweetalert2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,19 @@ declare module 'sweetalert2' {
*/
icon?: SweetAlertIcon;

/**
* The custom HTML content for an icon.
*
* ex.
* Swal.fire({
* icon: 'error',
* iconHtml: '<i class="fas fa-bug"></i>'
* })
*
* @default null
*/
iconHtml?: string;

/**
* Whether or not SweetAlert2 should show a full screen click-to-dismiss backdrop.
* Either a boolean value or a css background value (hex, rgb, rgba, url, etc.)
Expand Down

0 comments on commit 6f7f316

Please sign in to comment.