An opinionated toast component for React.
Add more comments
emilkowalskic7740f749af9
diff --git a/src/index.tsx b/src/index.tsxindex 492d475..5631b09 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -24,8 +24,10 @@ const TOAST_WIDTH = 356;// Default gap between toastsconst GAP = 14;+// Threshold to dismiss a toastconst SWIPE_THRESHOLD = 20;+// Equal to exit animation durationconst TIME_BEFORE_UNMOUNT = 200;function _cn(...classes: (string | undefined)[]) {