An opinionated toast component for React.
chore: add types for description className
Dan Johnsonaa5e715dc82d
diff --git a/src/index.tsx b/src/index.tsxindex 9b16df9..4cbc7cb 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -43,6 +43,7 @@ interface ToastProps {style?: React.CSSProperties;duration?: number;className?: string;+ descriptionClassName?: string;}const Toast = (props: ToastProps) => {diff --git a/src/types.ts b/src/types.tsindex 255076b..d309986 100644--- a/src/types.ts+++ b/src/types.ts@@ -32,6 +32,7 @@ export interface ToastT {promiseData?: PromiseData;style?: React.CSSProperties;className?: string;+ descriptionClassName?: string;}export type Position = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center';