feedbackcss
Toast
Sonner-style stacked notifications created imperatively through window.zToast, grouped by screen position, with swipe dismissal and promise helpers.
Notes
- Toasts are created imperatively (
zToast.success('Saved')); the toaster group is created on demand and appended tobody, so no markup is required. The toast pack exposeswindow.zToast. - Setting
hrefonactionorcancelrenders a native<a>link (supportingtargetandrel, defaultingreltonoopener noreferrerfortarget="_blank") while still runningonClickand dismissing unless prevented. - Collapsed stacks peek by
--z-toaster-peekper item and scale down by 5% per depth; hovering or focusing the group expands it. - Auto-dismiss timers pause while the group is expanded or hovered, or the page is hidden;
loadingtoasts never auto-dismiss. Default duration is 4000 ms (danger 6000 ms). - Toasts can be swiped away along the group's edge direction;
dismissible: falseor interactive content under the pointer blocks the swipe. - On viewports up to 40rem wide the group spans the viewport with 1rem side offsets.