We have used ui:message tag to display error messages in lightning component. Lightning Ui namespace is deprecating soon hence we are migrating Ui namespace tags to the lightning namespace. Do we have any other alternate tag to display error messages in the component with close option. We need display around 32 error messages in the component.
<ui:message title="Error" severity="error" closable="true">
This is an error message.
</ui:message>
Thanks,
Anil Kumar
Best Answer
You want to use the Lightning Notifications Library. This has the capability to show toasts or notifications.
You can reference the documentation and examples here
Here is a basic example shown from documenation:
And here is how you can show a toast
With the notification library, you have a much more robust system in place to show various messages to your user as it has tons of flexibility and options.