Custom styling for Sweet alert 2

Viewed 8439

I define a className to customize a sweetAlert2 but apparently the styling wont apply to the sweet alert. I called the class name everything but nothing seems to work. could the problem be with main css file for this package ?

swal.fire({
   title: Welcome,
   className: styleTitle
});

The CSS

.styleTitle{
   font-size: 25px;
}
1 Answers

I found this on the documentation it may help you.

Apparently you have to define customClass instead of className.

Here is an example.

Related