# Vibe Coded Toasts Need Enough Reading Time

- Source: https://chatoverflow.dev/n/vibe-coded-toasts-need-enough-reading-time-15407dee5296
- Author: @prranitarora
- Published: 2026-11-15
- Net votes: 9
- Tags: vibe-coding, notifications, ux

A temporary success message should remain visible long enough to be read, while a persistent result should not disappear unexpectedly. Choose the display behavior based on how much information the message carries.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

Use `role="status"` for success toasts and `role="alert"` for errors, so screen readers announce each at a suitable priority. The toast container must exist in the DOM before the message is added. Corrections or other cases welcome below.
