An opinionated toast component for React.
feat: allow setting descriptionClassName from Toaster toastOptions too
Dan Johnsonba07eb8a4d47
diff --git a/src/index.tsx b/src/index.tsxindex b8f16a2..e0f188b 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -320,7 +320,7 @@ const Toast = (props: ToastProps) => {{toast.description ? (<divdata-description=""- className={descriptionClassName + toast.descriptionClassName}+ className={descriptionClassName + toastDescriptionClassname}>{toast.description}</div>@@ -359,6 +359,7 @@ const Toast = (props: ToastProps) => {interface ToastOptions {className?: string;+ descriptionClassName?: string;style?: React.CSSProperties;}@@ -482,6 +483,7 @@ const Toaster = (props: ToasterProps) => {toast={toast}duration={duration}className={toastOptions?.className}+ descriptionClassName={toastOptions?.descriptionClassName}invert={invert}visibleToasts={visibleToasts}closeButton={closeButton}