New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cb-react-menubar

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cb-react-menubar

Flexible and animated Menubars

latest
Source
npmnpm
Version
2.2.6
Version published
Maintainers
1
Created
Source

react-responsive-multi-level-menu

A react library which provides flexible and cool animated menubar with an easy to use API and a bunch of awesome features . Give it a try and you will love it for sure.

demo

Install

npm install --save react-responsive-multi-level-menu

Usage

1.Define the data

  • Define the data(menu items) as per the given format , which you want to render in the Menubar.
const menuItems = [
  { value: "Fashion", 
    items: [
            { value: "Men",
              items: [{ value: "Shirts" }] 
            }
           ] 
  },
  { value: "Electronics"},
  { value: "Furnitures"},
  { value: "Jewelery&watches", items: [] }
];
export default MenuItems;

2. Use the Menubar component anywhere in your code

Use the Menubar component anywhere and pass the props.


import Menubar from "cb-react-menubar";
import MenuItems from "../path/where/menuItems/present";
import "./styles.css"

const app = () => {
  
  const animation=['slideIn' , 'slideOut']
  <div>
    <h1>This is Animated Menu-bar</h1>
    <Menubar data={MenuItems} animation={animation} backgroundColor="#FF5733" className="menubar"/>
  </div>;
};


Guide And Documentation

For the complete documentation . Click here.

Live Preview

Demo is worth thousand words

FAQs

Package last updated on 07 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts