I am looking to create Material-UI Collapsi Table Rows with separate styling. Check out the link for more information: https://material-ui.com/components/tables/#CollapsibleTable.tsx
const theme = createMuiTheme({
overrides: {
MuiTable: {
root: {
borderCollapse: "separate",
borderSpacing: "0 10px",
marginTop: "-10px"
}
},
MuiTableRow: {
root: {
borderRadius: 40,
border: "2px solid",
backgroundColor: "green",
},
},
},
});
I want it to look similar to this image with spacing in between: https://i.stack.imgur.com/bOJmr.png
The recommended method is by setting the Theme, but I welcome any other suggestions.