File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
src/Shared/Services/ToastManager Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 33
33
}
34
34
35
35
& __content {
36
+ // Override the style for the action button
36
37
button {
37
38
color : var (--N0 );
38
39
Original file line number Diff line number Diff line change @@ -10,10 +10,33 @@ export enum ToastVariantType {
10
10
}
11
11
12
12
export interface ToastProps {
13
+ /**
14
+ * Title for the toast
15
+ * If not provided, defaults to a value based on the selected variant
16
+ */
13
17
title ?: string
18
+ /**
19
+ * Description for the toast
20
+ */
14
21
description : string
22
+ /**
23
+ * Custom icon for the toast to override the icon based on variant
24
+ */
15
25
icon ?: ReactElement
26
+ /**
27
+ * Variant for the toast
28
+ *
29
+ * @default ToastVariantType.info
30
+ */
16
31
variant ?: ToastVariantType
32
+ /**
33
+ * Props for the action button to be displayed in the toast
34
+ *
35
+ * Note: Size, variant and style are hard-coded and cannot be overriden
36
+ */
17
37
buttonProps ?: ButtonProps
18
- progressBarBg ?: `var(--${string } )`
38
+ /**
39
+ * Custom progress bar color
40
+ */
41
+ progressBarBg ?: string
19
42
}
You can’t perform that action at this time.
0 commit comments