NEURALNG

TOAST

API

Outlet configuration stays separate from the serializable message contract.

Toast inputs

NameTypeDefaultPurpose
channel string'global' Selects the Message API stream.
position NeuralToastPosition'top-end' Logical viewport placement.
icon booleantrue Shows the decorative severity icon.
iconClass string'' Overrides the automatic severity icon.
showProgress booleanfalse Shows finite lifetime progress.
pauseOnInteraction booleantrue Pauses on hover and focus.
swipeToDismiss booleantrue Enables pointer swipe dismissal.
swipeThreshold number72 Dismissal distance in pixels.
animated booleantrue Enables enter and leave motion.
unstyled booleanfalse Removes NeuralNg visual classes.
toastClass string'' Adds classes to the outlet.
messageClass string'' Adds classes to every message.

Message API

notify() returns a reference with id, closed and closeReason Signals plus dismiss(). The service also exposes dismiss(id) and clear(channel?). Message payloads accept severity, title, message, channel, duration, dismissible and data.

Position union

top-starttop-centertop-endmiddle-startmiddle-centermiddle-endbottom-startbottom-centerbottom-end