wn-discoteam-theme/resources/js/toast.js

11 lines
365 B
JavaScript
Raw Permalink Normal View History

2024-10-03 16:17:51 +02:00
import Toastify from 'toastify-js';
export function error(message) {
Toastify({
text: message,
gravity: 'bottom', // `top` or `bottom`
className: 'bg-red-800 glow-red-100 text-red-100 text-lg font-semibold max-w-[95vw] md:max-w-[40vw] ring-2 ring-red-500',
onClick: function () {}, // Callback after click
}).showToast();
}