1.0.2 • Published 5 years ago
noi-menu v1.0.2
noi-menu
React Menu Component. port from https://github.com/kissyteam/menu
Forked
This is a Fork of the rc-menu library, modified so it uses a tag as opposed to an tag to render the submenu arrow icon. tags cause issues with the WCAG 2.0 (Level AA)) accessibility guidelines as is technically an obsolete tag designed to render italics, and should not be used as an icon placeholder.
This is forked from version 8.5.0 of the library.
Install
Usage
import Menu, { SubMenu, MenuItem } from 'rc-menu';
ReactDOM.render(
<Menu>
<MenuItem>1</MenuItem>
<SubMenu title="2">
<MenuItem>2-1</MenuItem>
</SubMenu>
</Menu>,
container,
);Compatibility
| IE / Edge | Firefox | Chrome | Safari | Electron |
|---|---|---|---|---|
| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
API
Menu props
Menu.Item props
Menu.SubMenu props
Menu.Divider props
none
Menu.ItemGroup props
Development
npm install
npm startExample
http://localhost:8001/examples/index.md
online example: http://react-component.github.io/menu/examples/
Test Case
npm test
npm run chrome-testCoverage
npm run coverageopen coverage/ dir
License
rc-menu is released under the MIT license.
1.0.2
5 years ago
