1
0

index.js 495 B

123456789101112131415161718192021222324252627
  1. import Toast from "../dist/toasters.js";
  2. const TestNotification = new Toast({
  3. content: "Hello World",
  4. persistent: true,
  5. interactable: false
  6. });
  7. const TestNotification2 = new Toast({
  8. content: "Hello World",
  9. persistent: true,
  10. interactable: true
  11. });
  12. const TestNotification3 = new Toast({
  13. content: "Hello World",
  14. persistent: true,
  15. interactable: true
  16. });
  17. // setTimeout(() => {
  18. // TestNotification.hide();
  19. // setTimeout(() => {
  20. // TestNotification.show();
  21. // }, 2000);
  22. // }, 2000);