materio-mui-react-nextjs-admin-template-free
Version:
Most Powerful & Comprehensive Free MUI React NextJS Admin Dashboard Template built for developers! 🚀
47 lines (45 loc) • 1.01 kB
JavaScript
const Accordion = theme => {
return {
MuiAccordion: {
styleOverrides: {
root: {
'&.Mui-disabled': {
backgroundColor: `rgba(${theme.palette.customColors.main}, 0.12)`
},
'&.Mui-expanded': {
boxShadow: theme.shadows[3]
}
}
}
},
MuiAccordionSummary: {
styleOverrides: {
root: {
padding: `0 ${theme.spacing(5)}`,
'& + .MuiCollapse-root': {
'& .MuiAccordionDetails-root:first-child': {
paddingTop: 0
}
}
},
content: {
margin: `${theme.spacing(2.5)} 0`
},
expandIconWrapper: {
color: theme.palette.text.secondary
}
}
},
MuiAccordionDetails: {
styleOverrides: {
root: {
padding: theme.spacing(5),
'& + .MuiAccordionDetails-root': {
paddingTop: 0
}
}
}
}
}
}
export default Accordion