New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

rc-dropdown

Package Overview
Dependencies
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-dropdown

dropdown ui component for react

Source
npmnpm
Version
2.2.1
Version published
Weekly downloads
2.7M
51.03%
Maintainers
4
Weekly downloads
 
Created
Source

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

                   
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.

Keywords

react

FAQs

Package last updated on 28 Sep 2018

Related posts