JSPM

  • Created
  • Published
  • Downloads 1838538
  • Score
    100M100P100Q196519F

dropdown ui component for react

Package Exports

  • rc-dropdown
  • rc-dropdown/assets/index.css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rc-dropdown) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rc-dropdown

react dropdown component

NPM version build status Test coverage gemnasium deps node version npm download

Screenshot

Example

online example: http://react-component.github.io/dropdown/examples/

install

rc-dropdown

Usage

var Dropdown = require('rc-dropdown');
// use dropdown

API

props

name type default description
className String additional css class of root dom node
prefixCls String rc-tooltip prefix class name
transitionName String dropdown menu's animation css class name
animation String part of dropdown menu's animation css class name
onVisibleChange Function call when visible is changed
visible boolean whether tooltip is visible
defaultVisible boolean whether tooltip is visible initially
overlay rc-menu [rc-menu](https://github.com/react-component/menu) element

Development

npm install
npm start

Test Case

http://localhost:8006/tests/runner.html?coverage

Coverage

http://localhost:8006/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8006/tests/runner.html?coverage

License

rc-dropdown is released under the MIT license.