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 component for drawer list styling, a state and function to handle it's event. Also you need to add the code of drawer in the page where you want to add the component. Please check the code snippet given below, we have added the drawer in the Ecommerce Dashboard:
Step 2: Now Import the component from its parent library.
import { withStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import Button from '@material-ui/core/Button';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
We have given you an example of adding a temporary drawer on the Ecommerce Dashboard.
You can check some other layouts of drawer below. For adding any of the below layout in the template, please check their relative code in the src->routes->components->drawers->component folder.