To create a new toast in the snackbar, you must create an object for displaying the toast. The object
must contain a
text key and then an optional
action key. The action can either be a string,
number, or an object of props to provide to a button.
This following example will allow you to set different props on the Snackbar and see how it affects the resulting toast.