How to customize the Authentication toast that shows at the top with error messages?
See original GitHub issue** Which Category is your question related to? **
Authenticator Component.
** What AWS Services are you utilizing? **
Cognito.
** Provide additional details e.g. code snippets **
I can customize all the Authentication components (SignUp, ForgotPassword, etc…), except the Toast one that shows up at the top of the screen with error messages. I’d like to get rid of it and instead show my own component.
I tried using a theme to hide the NavBar that seems the Toast to be built with as follows, but doesn’t seem to work:
const awsTheme = {
navBar: { display: "none" },
};
....
<Authenticator theme={aswTheme} errorMessage={MyErrorHandler} ... />
How can I achieve this? I can’t find anything in the documentation.
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Using React-Toastify to style your toast messages
Let us spin up our React app and see how we can use the React-Toastify to style our toast messages. Remember, toast messages...
Read more >Updating Employee Information - Toast Central
Select the pencil icon from an employee's line on the Employees page. Select the Basic tab. If you are a Toast Payroll user...
Read more >Toasts
A toast appears in reaction to user action: creating, editing, deleting. For example, a user edits an opportunity via a modal and saves...
Read more >Toast Notifications - Salesforce Lightning Component Library
Toast Notifications ; variant, String. The theme and icon displayed in the toast. Valid values are: info —(Default) A gray box with an...
Read more >node.js - How To Make Toast Throw Out Custom Errors
I am using MongoDB and I installed react toastify to show errors from my ... I can output toast messages but not the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, Lets say we dont want to use that toast component. Instead i want to use something like react-notification-alert or any other thing. How can i achieve this ? Thanks.
You need to customize the “toast” class in your theme: { …, toast: {backgroundColor: ‘red’}, … }