Feedback with a next action
Snackbar presents one message at a time, with up to two follow-up actions. Use it for Undo, View favourites, or Checkout. The root service manages its own container and queue.
When to use it
Choose Snackbar for contextual actions and Toast for a short status message. Import PMatSnackbarService from @proppy/material/snackbar; use the root service without adding a page-level provider or outlet.
Keyboard, timers, and mobile
- Opening does not move focus. Tab reaches actions; Escape dismisses from inside.
- Timers pause on hover, touch, focus within, and pending actions.
- Horizontal swipes dismiss while vertical gestures keep page scrolling available.
- Use persistent messages with an accessible action or close button for important recovery tasks.
- Messages wrap at narrow widths and respect RTL and reduced motion.