I am attempting to modify the background color of every item in my Pagination component by utilizing makeStyles
.
import { Pagination } from "@material-ui/lab";
import { makeStyles } from "@material-ui/core";
const pagination = makeStyles({
root: {
"& .Mui-selected": {
color: "white",
backgroundColor: "black"
}
}
});
export default function App() {
const paginationClass = pagination();
return <Pagination count={10} page={10} className={paginationClass.root} />;
}
Here is a link to view what I have accomplished so far.
Is there a way for me to adjust the color of each Pagination Item using makeStyles
?