Skip to content

An opinionated toast component for React.

Add more comments

emilkowalskic7740f749af9
diff --git a/src/index.tsx b/src/index.tsx
index 492d475..5631b09 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -24,8 +24,10 @@ const TOAST_WIDTH = 356;
// Default gap between toasts
const GAP = 14;
+// Threshold to dismiss a toast
const SWIPE_THRESHOLD = 20;
+// Equal to exit animation duration
const TIME_BEFORE_UNMOUNT = 200;
function _cn(...classes: (string | undefined)[]) {