We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53e0aca + 7823d7d commit c2e212cCopy full SHA for c2e212c
index.d.ts
@@ -22,7 +22,7 @@ export type CombinedClassKey = NotistackClassKey | SnackbarClassKey;
22
23
export interface InjectedNotistackProps {
24
onPresentSnackbar: (variant: VariantType, message: string) => void;
25
- enqueueSnackbar: (message: string, options?: OptionsObject) => void;
+ enqueueSnackbar: (message: string | React.ReactNode, options?: OptionsObject) => void;
26
}
27
28
export function withSnackbar<P extends InjectedNotistackProps>(component: React.ComponentType<P>):
0 commit comments