I am working on diamond-react theme of primereact and I have customized the menu. I want to expand the menu item default or conditionally. I tried with below expanded property as per documentation but it didn't worked for me:
{
label: "Email", icon: "pi pi-fw pi-inbox",
items: [
{
label: "My Email", icon: "pi pi-fw pi-inbox", to: '/email'
},
{
label: "Company Emails", icon: "pi pi-fw pi-inbox", to: '/company-email',
},
],
expanded:true,
},
Other Properties like visible: true
is working fine.