sy-ui-lib 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,7 +33,7 @@ import { SnackBarProps } from './SnackBar.types';
|
|
|
33
33
|
* });
|
|
34
34
|
*
|
|
35
35
|
* @component
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {React.ReactNode} message - The message text / custom UI to show in the snackbar.
|
|
37
37
|
* @param {"info" | "success" | "error"} [type="info"] - The type of snackbar (affects color).
|
|
38
38
|
* @param {"default" | "action" | "dismiss"} [variant="default"] - Type of interaction allowed.
|
|
39
39
|
* @param {number} [duration=3000] - Duration in milliseconds before it auto-dismisses.
|
|
@@ -29,10 +29,10 @@ type SnackbarOptions = {
|
|
|
29
29
|
/** Trigger global snackbars.*/
|
|
30
30
|
export declare const snackbar: {
|
|
31
31
|
/** Show success snackbar */
|
|
32
|
-
success: (message:
|
|
32
|
+
success: (message: React.ReactNode, options?: SnackbarOptions) => void;
|
|
33
33
|
/** Show error snackbar */
|
|
34
|
-
error: (message:
|
|
34
|
+
error: (message: React.ReactNode, options?: SnackbarOptions) => void;
|
|
35
35
|
/** Show info snackbar */
|
|
36
|
-
info: (message:
|
|
36
|
+
info: (message: React.ReactNode, options?: SnackbarOptions) => void;
|
|
37
37
|
};
|
|
38
38
|
export {};
|