You can add the component on any page in the template. You need to follow the steps given below:
Step 1: You need to create a state and functions to handle it's events. Also you need to add the code of snackbar in the page where you want to add the component. Please check the code snippet given below, we have added the snackbar in the Ecommerce Dashboard:
Step 2: Now Import the component from its parent library.
import Button from '@material-ui/core/Button';
import Snackbar from '@material-ui/core/Snackbar';
import IconButton from '@material-ui/core/IconButton';
We have given you an example of adding a simple snackbar on the Ecommerce Dashboard.
You can check some other layouts of snackbar below. For adding any of the below layout in the template, please check their relative code in the src->routes->components->snackbar->component folder.