better-toast 0.1.0 → 0.2.0
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 +1 -0
- package/fesm2022/better-toast.mjs +251 -26
- package/fesm2022/better-toast.mjs.map +1 -1
- package/package.json +1 -1
- package/types/better-toast.d.ts +43 -5
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ Common inputs (all optional except using defaults):
|
|
|
38
38
|
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
|
|
39
39
|
| `duration` | Default auto-dismiss in ms for toasts that omit `durationMs` (also supports the literal `duration="Infinity"` for manual dismiss). |
|
|
40
40
|
| `position` | `top-left` \| `top-center` \| `top-right` \| `bottom-left` \| `bottom-center` \| `bottom-right` (default `bottom-right`). |
|
|
41
|
+
| `stacked` | When `true` (default), extra toasts collapse into a 3-layer card stack; hover, focus, or a press on touch expands the list. Set `false` to keep every toast fully visible. |
|
|
41
42
|
| `richColors` | When `true`, semantic background/border colors for success/error/info/warning. |
|
|
42
43
|
| `theme` | `light` \| `dark` \| `system` (default). |
|
|
43
44
|
| `closeButton` | Show per-toast dismiss control (default `true`). |
|