diff --git a/.gitignore b/.gitignore
index 5ae1430..6ac6022 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,7 @@
.DS_Store
node_modules/
dist/
+
+# Packages
package-lock.json
+pnpm-lock.yaml
\ No newline at end of file
diff --git a/example/index.html b/example/index.html
index cde335d..fa06b74 100644
--- a/example/index.html
+++ b/example/index.html
@@ -1,33 +1,78 @@
-
- sonner-js example
-
-
-
+
-
-
-
-
-
-
-
-
-
-
+ }
+
+ function loadingLots() {
+ for (let i = 0; i < 10; i++) {
+ const promise = new Promise((resolve, reject) => {
+ setTimeout(() => {
+ if (fail) reject(new Error('OH NO!'));
+ resolve(Date.now())
+ }, 1_000);
+ });
+ Sonner.promise(promise, {
+ loading: `#${i}: Waiting for 1s...`,
+ success: (data) => `The current time is now: ${data}`,
+ error: 'Oops! Failed :c',
+ duration: -1
+ });
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+