notiflix / Notiflix

Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.

Home Page:https://notiflix.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

change default notify icon

alimatinfar opened this issue · comments

hello
how can i change the default notify icon ?

Hi @alimatinfar ,

You can init/call the Notify module like an example below to use custom icons. (font-awesome or the equivalent web fonts)

Notiflix.Notify.success(
  'Message...',
  {
    useIcon: true, // default is true
    useFontAwesome: true, // default is false
    success: {
      fontAwesomeClassName: 'fab fa-github', // font-awesome icon class name...
    },
  },
);

Also, you can take a look at the all other options as well.
https://github.com/notiflix/Notiflix#notiflix-notify-module-default-options

Thanks,
Furkan.