Socket
Socket
Sign inDemoInstall

cpr-select

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpr-select

A consistently styled cross-browser and keyboard friendly select component


Version published
Weekly downloads
63
increased by472.73%
Maintainers
1
Weekly downloads
 
Created
Source

cpr-select Build Status

Canopy React Select

Requirements

  • React 0.13.3
  • Lodash methods findIndex

Installation

  1. Install through npm install --save cpr-select
  2. Optional - if you want some default styling use the stylesheet: build/external-styles.css

Usage

Basic

import CanopySelect from 'cpr-select';

let items = [
	{
		"value": "Alabama",
		"key": "AL"
	}, {
		"value": "Alaska",
		"key": "AK"
	}, {
		"value": "American Samoa",
		"key": "AS"
	}
];

function itemsChanged(key, item, index) {
	console.log(key);
}

<CanopySelect items={items} onChange={itemsChanged} placeholder="Select a country" selected="AK"></CanopySelect>

Demo

http://canopytax.github.io/cpr-select/

FAQs

Package last updated on 13 Jul 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc