rc-dropdown
react dropdown component!NPM versionnpm-imagenpm-url !build statustravis-imagetravis-url !Test coveragecoveralls-imagecoveralls-url !Dependenciesdavid-imagedavid-url !DevDependenciesdavid-dev-imagedavid-dev-url !npm downloaddownload-imagedownload-url !bundle sizebundlephobia-imagebundlephobia-url !dumidumi-imagedumi-url
Screenshot
Example
online example: http://react-component.github.io/dropdown/examples/install
Usage
var Dropdown = require('rc-dropdown');
// use dropdown
API
props
${prefixCls}-open |
className of trigger when dropdown is opened | true (false when set alignPoint) | whether overlay's width must not be less than trigger's |
Note: Additional props are passed into the underlying rc-trigger component. This can be useful for example, to display the dropdown in a separate portal-driven window via the
getDocument()
rc-trigger prop.Development
npm install
npm start
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir