1.0.2 • Published 4 years ago

noi-menu v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

noi-menu


React Menu Component. port from https://github.com/kissyteam/menu

NPM version

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

rc-menu

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 / EdgeFirefoxChromeSafariElectron
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

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.