Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-color-picker

Package Overview
Dependencies
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-color-picker

color-picker ui component for react

  • 1.1.7
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

rc-color-picker


React Color Picker

npm version npm download npm dependency Build Status

Browser Support

ChromeEdgeFirefoxIEOperaSafari
Chrome 31.0+ ✔Edge 12.0+ ✔Firefox 31.0+ ✔IE 10+ ✔Opera 30.0+ ✔Safari 7.0+ ✔

Screenshots

<img src=https://cloud.githubusercontent.com/assets/1292082/8275606/8608e8f8-18db-11e5-8d10-703253db2a4f.png width=238 />

Development

npm install
npm start

Example

online example: http://react-component.github.io/color-picker/

Feature

  • support color mode RGB HSB HSL

install

rc-color-picker

Usage

var ColorPicker = require('rc-color-picker');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(<ColorPicker />, container);

API

ColorPicker.props

nametypedefaultdescription
alignObject: alignConfig of dom-alignpopup 's align config
alphaNumber100opacity of the color
animationStringindex.css support 'slide-up'
childrenNode<span className='react-colorpicker-trigger'></span>additional trigger appended to picker
classNameString''Aditional class to be added to component
colorString#ff0000color board current background color
defaultAlphaNumber100opacity of the color
defaultColorString#ff0000color board current background color
enableAlphaBooleantrueenable alpha controls
getCalendarContainerFunction():Elementfunction(){return document.body;}dom node where picker to be rendered into
modeStringRGBcolor mode, support mode 'RGB', 'HSB' or 'HSL'
onChangeFunctionnoopwhen select color
onCloseFunctionnoopwhen color picker popup close
onOpenFunctionnoopwhen color picker popup open
placementStringtopLeftone of ['topLeft', 'topRight', 'bottomLeft', 'bottomRight']
transitionNameStringcss class for animation

ColorPicker.Panel.props

nametypedefaultdescription
alphaNumber100opacity of the color
classNameString''Aditional class to be added to component
colorString#ff0000color board current background color
defaultAlphaNumber100opacity of the color
defaultColorString#ff0000color board current background color
enableAlphaBooleantrueenable alpha controls
modeStringRGBcolor mode, support mode 'RGB', 'HSB' or 'HSL'
onBlurFunctionwhen picker loose focus
onChangeFunctionwhen select color trigger
onFocusFunctionwhen picker focus trigger
styleObject{}root node CSS style

License

rc-color-picker is released under the MIT license.

Keywords

FAQs

Package last updated on 01 Jul 2017

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