Gathering detailed insights and metrics for @revolist/revo-dropdown
Gathering detailed insights and metrics for @revolist/revo-dropdown
Gathering detailed insights and metrics for @revolist/revo-dropdown
Gathering detailed insights and metrics for @revolist/revo-dropdown
Minimalistic dropdown and auto-complete component with filtering and keyboard support
npm install @revolist/revo-dropdown
Typescript
Module System
Node Version
NPM Version
72.9
Supply Chain
100
Quality
79.2
Maintenance
100
Vulnerability
100
License
JavaScript (78.42%)
TypeScript (15.11%)
SCSS (3.95%)
HTML (2.52%)
Total Downloads
96,364
Last Day
10
Last Week
1,060
Last Month
5,055
Last Year
54,865
MIT License
24 Stars
70 Commits
7 Forks
3 Watchers
2 Branches
4 Contributors
Updated on Nov 11, 2024
Minified
Minified + Gzipped
Latest Version
3.0.3
Package Id
@revolist/revo-dropdown@3.0.3
Unpacked Size
2.26 MB
Size
495.84 kB
File Count
90
NPM Version
10.9.0
Node Version
22.10.0
Published on
Nov 11, 2024
Cumulative downloads
Total Downloads
Last Day
-68.8%
10
Compared to previous day
Last Week
-14.2%
1,060
Compared to previous week
Last Month
-10.7%
5,055
Compared to previous month
Last Year
213.3%
54,865
Compared to previous year
5
revo-dropdown
Minimalistic dropdown webcomponent. After long search we couldn't find any cross platform and had to build our own inspired by the latest trends.
Autocomplete | Regular select |
---|---|
![]() | ![]() |
To start building a new web component using Stencil, clone this repo to a new directory:
1npm i @revolist/revo-dropdown
1 2import * as loader from '@revolist/revo-dropdown/loader'; 3if (loader.defineCustomElements) { 4 loader.defineCustomElements(); 5}
<script src='https://cdn.jsdelivr.net/npm/@revolist/revo-dropdown@latest/dist/revo-dropdown/revo-dropdown.js'></script>
in the head of your index.htmlThen you can use the element anywhere in your template, JSX, html etc
1<revo-dropdown data-label="name" autocomplete="true" placeholder="Philosophers" max-height="300"></revo-dropdown>
1<script type="module"> 2 const people = [ 3 { 4 eyeColor: 'green', 5 name: 'Samantha Molina', 6 }, 7 { 8 eyeColor: 'green', 9 name: 'Weber Henderson', 10 }]; 11 const dropdowns = document.querySelectorAll('revo-dropdown'); 12 for (var q = 0; q < dropdowns.length; q++) { 13 dropdowns[q].source = people; 14 } 15</script>
Need help? Check out docs here.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
appendTo | append-to | Where to append element | "body" | "current" | 'body' |
autoClose | auto-close | Should dropdown autoclose on changeValue | boolean | true |
autoFocus | auto-focus | boolean | false | |
autocomplete | autocomplete | boolean | false | |
currentFilter | current-filter | Filter value | any | undefined |
dataId | data-id | Define object mapping for id/value | string | undefined |
dataLabel | data-label | Define object mapping for labels | string | undefined |
filter | filter | Filter criteria | "contains" | "start" | undefined |
hasFilter | has-filter | boolean | true | |
maxHeight | max-height | number | undefined | |
placeholder | placeholder | Placeholder text | string | 'Select' |
source | -- | Define object mapping for id/value | any[] | [] |
value | value | Selected value | any | undefined |
Event | Description | Type |
---|---|---|
changed | When value changed | CustomEvent<{ val: any; originalEvent?: MouseEvent; }> |
close | Before element close, can be prevented | CustomEvent<any> |
open | Before element open, can be prevented | CustomEvent<any> |
doChange(val: any, originalEvent?: MouseEvent) => Promise<void>
Change value
Type: Promise<void>
doClose(isDisconnected?: boolean) => Promise<void>
Close dropdown
Type: Promise<void>
doOpen() => Promise<void>
Open dropdown
Type: Promise<void>
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/28 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
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