Toast
The Toast component allows for displaying a message to the user in a non-intrusive way. It is used to display a message for a short period of time and then disappear. It is often used to display a message after a user action, such as a successful login or a failed login.
Toast.Icon can be used to create a styled icon within the Toast.Header component.
For more prop details about Toast Header, Body, and Container see RBS Toast.
Result
Loading...
Live Editor
Positioning
Using the ToastContainer allows you to position the Toast notification in different regions of the screen.
Result
Loading...
Live Editor
Analytics
The Toast component is trackable through Kyber Analytics. This is the default analytics config.
export default {
value: 'Toast',
actions: {
onClose: { type: 'TOAST_ON_CLOSE', payload: 'Close' },
},
};