name thatuiuser interface
Changes saved

Toast (Snackbar)

/ role="status" · Toaster /

also called snackbar, status toast, in-app notification

A toast is a compact, non-modal status message that appears in a screen corner after an action and dismisses automatically. It confirms transient outcomes such as saving or copying without interrupting the workflow. Unlike a notification banner, it does not occupy a persistent place in the page layout or demand acknowledgement.

Anatomy — every part, named

  1. 1
    Toast viewportToaster

    “The corner where all the little messages stack” is the toast viewport.

  2. 2
    Status messagerole="status"

    “The saved successfully text that appears by itself” is the toast's status message.

  3. 3
    Toast actionToastAction

    “The Undo button inside the temporary message” is the toast action.

Prompt — paste into your agent

Show a Toast (Snackbar) through a role="status" live region after the action succeeds. Place it in a consistent corner without blocking the page, auto-dismiss only nonessential messages after a short delay, and pause that timer while the toast is hovered or contains keyboard focus.

In code

The exact names this thing goes by in code — each row is one framework’s word for it. Use the row that matches your project (or paste it into your prompt).

ARIArole="status"
shadcn/uiToaster
Sonnertoast()
ARIAaria-live="polite"announces non-urgent updates

See also

Search

Describe the UI element you're thinking of