ComponentsOverlay

Toast

Short messages about what just happened — saved, failed, exported. Put one <tx-toast /> in the app shell and send toasts from anywhere with TxToastService. This site has one at the bottom.

Features9APIThemingAccessibility

Basic

success, info, warn and error show a toast with the matching icon and colour. It closes after 3 seconds; several toasts form a stack that spreads out under the pointer and keeps them open. Screen readers hear every toast without losing focus.

Title

title names the message for screen readers; with a text it stays hidden, alone it is the visible line.

Actions

actions adds buttons to the toast — Undo, Retry, Open. An action closes the toast after it runs unless it sets keepOpen.

  • Weekly sync notes
  • Budget draft
  • Onboarding checklist

Loading

loading() shows a spinner and stays until you update() it with a result. The update restarts its life and is announced again.

Sticky

sticky keeps the toast until it is closed; closable: false removes the close button. clear() closes every toast, clear(key) those of one outlet.

Progress

showProgress draws the time that is left along the bottom edge; it stops while the stack is hovered.

Positions

position puts the outlet in one of six places (bottom-center by default). Several outlets can live side by side: give each a key and send toasts with the same key. Each stack grows away from its edge.

Template

template replaces the content of one toast; let-toast gives the toast with its data, let-close closes it. For every toast of an outlet use <ng-template txToastTemplate> inside <tx-toast>.

Design tokens

dt on an outlet changes the tokens of its toasts — here a smaller pill for quick confirmations.