Gathering detailed insights and metrics for rc-dropdown
Gathering detailed insights and metrics for rc-dropdown
Gathering detailed insights and metrics for rc-dropdown
Gathering detailed insights and metrics for rc-dropdown
npm install rc-dropdown
Typescript
Module System
Node Version
NPM Version
91.2
Supply Chain
94.8
Quality
85.7
Maintenance
100
Vulnerability
100
License
TypeScript (76.07%)
Less (19.4%)
JavaScript (4.33%)
Shell (0.19%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
244,797,345
Last Day
305,227
Last Week
379,587
Last Month
5,226,704
Last Year
69,690,649
174 Stars
200 Commits
103 Forks
24 Watching
12 Branches
53 Contributors
Minified
Minified + Gzipped
Latest Version
4.2.1
Package Id
rc-dropdown@4.2.1
Unpacked Size
42.05 kB
Size
8.45 kB
File Count
24
NPM Version
10.8.2
Node Version
22.5.1
Publised On
11 Dec 2024
Cumulative downloads
Total Downloads
Last day
17.5%
305,227
Compared to previous day
Last week
-68%
379,587
Compared to previous week
Last month
-5.4%
5,226,704
Compared to previous month
Last year
18.8%
69,690,649
Compared to previous year
4
28
react dropdown component
online example: http://react-component.github.io/dropdown/examples/
1var Dropdown = require('rc-dropdown'); 2// use dropdown
name | type | default | description |
---|---|---|---|
overlayClassName | String | additional css class of root dom node | |
openClassName | String | `${prefixCls}-open` | className of trigger when dropdown is opened |
prefixCls | String | rc-dropdown | prefix class name |
transitionName | String | dropdown menu's animation css class name | |
animation | String | part of dropdown menu's animation css class name | |
placement | String | bottomLeft | Position of menu item. There are: top, topCenter, topRight, bottomLeft, bottom, bottomRight |
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 element | |
onOverlayClick | function(e) | call when overlay is clicked | |
minOverlayWidthMatchTrigger | boolean | true (false when set alignPoint) | whether overlay's width must not be less than trigger's |
getPopupContainer | Function(menuDOMNode): HTMLElement | () => document.body | Where to render the DOM node of dropdown |
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.
1npm install 2npm start
1npm test 2npm run chrome-test
1npm run coverage
open coverage/ dir
rc-dropdown is released under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 9/28 approved changesets -- score normalized to 3
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More