
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
cpr-select
Advanced tools
Canopy React Select
npm install --save cpr-select
src/select.css
build/external-styles.css
selected
: the key of the currently selected itemoptions
: the items to select from. You can insert a separator between items by putting {separator: true}
as an item.onChange
: called when selected item changesdisabled
: pass true to disable the inputplaceholder
: placeholder for inputselectClass
: (optional) custom class to be added to the select elementouterClass
: (optional) custom class to be added to the outer containing elementzIndex
: (optional) override the default z-index of 1000import CanopySelect from 'cpr-select';
import 'cpr-select/src/select.css';
let items = [
{
"value": "Alabama",
"key": "AL"
}, {
"separator": true,
}, {
"value": "Alaska",
"key": "AK"
}, {
"value": "American Samoa",
"key": "AS"
}
];
function itemsChanged(key, item, index) {
console.log(key);
}
<CanopySelect options={items} onChange={itemsChanged} placeholder="Select a country" selected="AK"></CanopySelect>
FAQs
A consistently styled cross-browser and keyboard friendly select component
The npm package cpr-select receives a total of 13 weekly downloads. As such, cpr-select popularity was classified as not popular.
We found that cpr-select demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.