The package will generate a mega menu up to 10 columns
Attribute | Type | Default Values | Description |
---|---|---|---|
nodeList | array | [] | Node List description |
width | string | “100%” | Width of the mega menu |
height | string | “100%” | Height of the Mega menu |
itemIdSeperator | string | “/” | Node identifier seperator |
onNodeClick | func | Function to invoke when mega menu item is clicked |
import MegaMenu from "react-awesome-mega-menu";
<MegaMenu nodeList={nodeList} onNodeClick={val => console.log(val)} />
$ npm i react-awesome-mega-menu --save
Keep it simple. Keep it minimal.
Author: hasithajayasundara
GitHub: https://github.com/hasithajayasundara/react-awesome-megamenu
#reactjs #javascript