Search code examples
admin-on-restreact-admin

Add a top level menu in react-admin


How can i a a top level menu in the appbar between the title and the usermenu ?

I tried something like this, but it do not work :

const MyAppBar = props => <AppBar {...props} userMenu={<MyUserMenu />} ><MyTopMenu /></AppBar>

Solution

  • Assuming you want to create a sub-menu in react-admin, you'll need to create a custom sub-menu component following the nested list technique from material-ui.
    You will also need to create and use a custom menu as explained in react-admin's documentation.