deku-menu
v1.0.0
Published
A simple menu component for Deku
Downloads
13
Maintainers
Readme
deku-menu
A simple menu component for Deku
Install
$ npm install --save deku-menu
Usage
import {Menu, MenuItem, SubMenu} from 'deku-menu';
const render = () => {
return (
<div class='MyMenu'>
<Menu class='CustomClass'>
<SubMenu title='National Hockey League'>
<SubMenu title='Eastern Conference'>
<MenuItem>New York Rangers</MenuItem>
<MenuItem>Ottawa Senators</MenuItem>
</SubMenu>
<SubMenu title='Western Conference'>
<MenuItem>Los Angeles Kings</MenuItem>
<MenuItem>San Jose Sharks</MenuItem>
</SubMenu>
</SubMenu>
<SubMenu title='Swedish Hockey League'>
<MenuItem>Frölunda Indians</MenuItem>
<MenuItem>Växjö Lakers</MenuItem>
</SubMenu>
<MenuItem>Zamboni</MenuItem>
</Menu>
</div>
);
};
export default {render};
License
MIT © Andreas Gillström