SubMenu

Example

Add multiple sub menu by adding arrays to items prop.

<>
	<Submenu items={[{title:"Submenu 1", link:""},{title:"Submenu 2", link:""},{title:"Submenu 3", link:""}]} />
</>

Additional item

Add additional item by additionalMenuItem prop.

<>
	<Submenu items={[{title:"Submenu 1", link:""},{title:"Submenu 2", link:""},{title:"Submenu 3", link:""}]} additionalMenuItem="Additional item" />
</>

API

import Submenu from "erxes-ui/lib/components/subMenu/Submenu";
  • required prop
NAMETYPEDEFAULTDESCRIPTION
title*stringDefines submenu title
linkstringDefine the path of where to go when clicked
additionalMenuItemReact.ReactNodeDefine additional sub menu item that will be displayed right side of sub menu

Was this page helpful?