Place one ToastContainer at application root and inject NeuToastService wherever a message is needed. show returns an id for dismiss(id); clear removes all messages and setPosition chooses the corner. duration is milliseconds; 0 keeps a message until dismissal. This documentation scopes the service per example to avoid affecting the site.
Place one ToastContainer at application root and inject NeuToastService wherever a message is needed. show returns an id for dismiss(id); clear removes all messages and setPosition chooses the corner. duration is milliseconds; 0 keeps a message until dismissal. This documentation scopes the service per example to avoid affecting the site.
Inputs, models and Outputs are extracted from the installed Core package. Named public types link to their definitions. Templates below include executable examples.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
This component does not expose content projection or public customization templates.
Use the supported public tokens listed below. Surrounding layout belongs to your application; validate the result in light and dark modes and narrow containers.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.