Place NotificationCenter where users can reach the inbox and inject NeuNotificationService. push returns an id; remove deletes one message, markAllRead clears the unread count and clearAll empties the inbox. duration is milliseconds; 0 retains a notification. In this example the service is local so the two demos do not share messages.
Place NotificationCenter where users can reach the inbox and inject NeuNotificationService. push returns an id; remove deletes one message, markAllRead clears the unread count and clearAll empties the inbox. duration is milliseconds; 0 retains a notification. In this example the service is local so the two demos do not share messages.
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.
Token
Purpose here
Other impact
Default / fallback
--neu-error
Invalid field or danger-action color
Shared by other Core consumers; scope the override.
#dc2626
--neu-focus-ring
Normal keyboard-focus ring
Shared by other Core consumers; scope the override.