dropdown

Dropdown ui component for react

Jun 07, 2018
Dropdown ui component for react

rc-dropdown

react dropdown component.

View demo Download Source

install

rc-dropdown

Usage

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

API

props

                   

nametypedefaultdescription
overlayClassNameStringadditional css class of root dom node
prefixClsStringrc-tooltipprefix class name
transitionNameStringdropdown menu's animation css class name
animationStringpart of dropdown menu's animation css class name
onVisibleChangeFunctioncall when visible is changed
visiblebooleanwhether tooltip is visible
defaultVisiblebooleanwhether tooltip is visible initially
overlayrc-menurc-menu element
onOverlayClickfunction(e)call when overlay is clicked
minOverlayWidthMatchTriggerbooleantrue (false when set alignPoint)whether overlay's width must not be less than trigger's

Development

npm install npm start

Test Case

npm test npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rc-dropdown is released under the MIT license.

GitHub

Recommended