css-reactmenu

css-reactmenu uses component property to add menu,responsive menu


Keywords
react, react-component, responsive-menu, react-menu, reusable-menu, react-menu-component
Install
npm install css-reactmenu@6.0.0

Documentation

screen shot

alt tag

To build the examples locally, run:

npm install
npm start

Then open localhost:8000 in a browser.

Installation

The easiest way to use css3-reactmenu is to install it from NPM and include it in your own React build process (using Browserify, Webpack, etc).

You can also use the standalone build by including dist/css3-reactmenu.js in your page. If you use this, make sure you have already included React, and it is available as a global variable.

npm install css-reactmenu --save

important

Make sure you copy css src/Css3Reactmenu.less and make it available to the component via your app else it will not work

Usage and Parameters

var menuObjs = [{"title":"menuTitle"}];  //<array of objects max 10 to create list of menus>
var isDemo = true/false (default false); // recommended to be false in your app;
var Css3Reactmenu = require('css3-reactmenu');

<Css3Reactmenu menuObjs={menuObjs} isDemo={isDemo}>Example</Css3Reactmenu>

Properties

Notes

Development (src, lib and the build process)

NOTE: The source code for the component is in src. A transpiled CommonJS version (generated with Babel) is available in lib for use with node.js, browserify and webpack. A UMD bundle is also built to dist, which can be included without the need for any build system.

To build, watch and serve the examples (which will also watch the component source), run npm start. If you just want to watch changes to src and rebuild lib, run npm run watch (this is useful if you are working with npm link).

License

MIT LICENSE

Copyright (c) 2016 .