rk-rc-menu
v0.0.3
Published
menu ui component for react
Downloads
1
Maintainers
Readme
rk-rc-menu (rc-menu)
rk-rc-menu: https://github.com/RK-WJW/menu, 在rc-menu基础上做了些调整
- 去掉了依赖模块
dom-scroll-into-view
,使用了scrollIntoViewIfNeeded
代替
react menu component. port from https://github.com/kissyteam/menu
Screenshot
Usage
import Menu, {SubMenu, MenuItem} from 'rc-menu';
ReactDOM.render(<Menu>
<MenuItem>1</MenuItem>
<SubMenu title="2">
<MenuItem>2-1</MenuItem>
</SubMenu>
</Menu>, container);
install
API
Menu props
Menu.Item props
Menu.SubMenu props
Menu.Divider props
none
Menu.ItemGroup props
Development
npm install
npm start
Example
http://localhost:8001/examples/index.md
online example: http://react-component.github.io/menu/examples/
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir
License
rc-menu is released under the MIT license.