Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
cpr-select
Advanced tools
A consistently styled cross-browser and keyboard friendly select component
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. You can also prevent the user from selecting an item by including disabled: true
in your item object.onChange
: called when selected item changesonBlur
: called when the select widget is blurred (with the currently selected item)disabled
: 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 elementinputClass
: (optional) custom class to be added to the hidden input elementdropdownClass
: (optional) custom class to be added to the dropdown 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",
"disabled": true
}
];
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 1 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.