Nav Section
import { NavSectionMini, NavSectionVertical, NavSectionHorizontal } from 'src/components/nav-section';
function App() {
return (
<>
<NavSectionMini data={data} slotProps={{...}} />
<NavSectionVertical data={data} slotProps={{...}} />
<NavSectionHorizontal data={data} slotProps={{
gap: 4,
rootItem: { bgcolor: 'red', color: 'blue' },
subItem: { bgcolor: 'red', color: 'blue' },
subheader: { bgcolor: 'red', color: 'blue' },
currentRole:'admin'
}} />
</>
);
}
Related files:
src/components/nav-section