
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-nav-bar
Advanced tools
Can be used to create customizable navigation bar for your react project.


npm install --save react-nav-bar
var reactNavBar = require('react-nav-bar');
var NavBar = reactNavBar.NavBar;
var Menu = reactNavBar.Menu;
// Define your menu:
// Menu can be any valid component form within react or objects with the listed properties.
var menus = [
{ path:'menu1', label:'Menu 1', icon:'bell'},
<div>jsx element</div>,
{ path:'menu3', label:'Menu 3', icon:'bars', subMenus: [
{ path:'menu4', label:'Menu 4'},
{ path:'menu5', label:'Menu 5', subMenus: [
{ path:'menu6', label:'Menu 6' },
{ path:'menu7', label:'Menu 7'},
React.createClass({ render: function() { return <li>can do that TOO</li>; } }),
{ path:'menu9', label:'Menu 9'}
]},
{ path:'menu10', label: <div> You can do that too</div>, icon:'bars'}
]}
]
// Then use NavBar to place the menus where you want.
<div className="menu">
<NavBar menus={menus} theme={'hoverLakeBright'} location={this.props.location} />
</div>
NavBar and Menu have different options
spring={{ opened:100, closed:0, style: function(x) { return { height: ${x}%} } }}// icons used are font-awesome icons so: use https://github.com/danawoodman/react-fontawesome for icons reference. toggle object example:
var toggle = {
display: false,
default: 'pied-piper',
parent: {
opened: 'bars',
closed: 'pied-piper'
},
child: {
opened: 'bus',
closed: 'coffee'
},
};
Using custom theme is very simple:
.hoverLakeBright_isOpened to .YouThemeName_isOpenedAnd your done.
FAQs
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.