d9-toast 1.0.15 → 1.0.16
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.
- package/README.md +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,10 +80,8 @@ export default App;
|
|
|
80
80
|
|
|
81
81
|
| Prop | Type | Default | Description |
|
|
82
82
|
| ------------------ | ------- | ----------- | ------------------------------------------------------------------------------- |
|
|
83
|
-
| `position` | string | `top-right` | Position of all toasts (`top-left`, `top-right`, `bottom-left`, `bottom-right`) |
|
|
84
|
-
|
|
85
|
-
| `pauseOnHover` | boolean | `true` | Pause toast timer on hover |
|
|
86
|
-
| `pauseOnFocusLoss` | boolean | `true` | Pause toast timer when window loses focus |
|
|
83
|
+
| `position` | string | `top-right` | Position of all toasts (`top-left`, `top-right`, `bottom-left`, `bottom-right`, `center`, `center-top`, `center-bottom` ) |
|
|
84
|
+
|
|
87
85
|
|
|
88
86
|
### 4. Toast Options
|
|
89
87
|
|
|
@@ -92,6 +90,9 @@ export default App;
|
|
|
92
90
|
| `message` | string | - | The message to display |
|
|
93
91
|
| `type` | string | `info` | Type of toast (`success`, `error`, `info`, `warning`, `loading`, `submit`) |
|
|
94
92
|
| `duration` | number | 5000 | Auto-close duration in ms (0 for infinite) |
|
|
93
|
+
| `theme` | string | `light` | Default theme for all toasts (`light` or `dark`) |
|
|
94
|
+
| `pauseOnHover` | boolean | `true` | Pause toast timer on hover |
|
|
95
|
+
| `pauseOnFocusLoss` | boolean | `true` | Pause toast timer when window loses focus |
|
|
95
96
|
| `actions` | array | [] | Array of action objects `{ text: string, callback: function }` |
|
|
96
97
|
| `closable` | boolean | true | Show close button |
|
|
97
98
|
| `progress` | boolean | true | Show progress bar |
|