
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
rc-color-picker
Advanced tools
React Color Picker
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|---|
Chrome 31.0+ ✔ | Edge 12.0+ ✔ | Firefox 31.0+ ✔ | IE 10+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |
<img src=https://cloud.githubusercontent.com/assets/1292082/8275606/8608e8f8-18db-11e5-8d10-703253db2a4f.png width=238 />
npm install
npm start
online example: http://react-component.github.io/color-picker/
var ColorPicker = require('rc-color-picker');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(<ColorPicker />, container);
name | type | default | description |
---|---|---|---|
align | Object: alignConfig of dom-align | popup 's align config | |
alpha | Number | 100 | opacity of the color |
animation | String | index.css support 'slide-up' | |
children | Node | <span className='react-colorpicker-trigger'></span> | additional trigger appended to picker |
className | String | '' | Aditional class to be added to component |
color | String | #ff0000 | color board current background color |
defaultAlpha | Number | 100 | opacity of the color |
defaultColor | String | #ff0000 | color board current background color |
enableAlpha | Boolean | true | enable alpha controls |
getCalendarContainer | Function():Element | function(){return document.body;} | dom node where picker to be rendered into |
mode | String | RGB | color mode, support mode 'RGB', 'HSB' or 'HSL' |
onChange | Function | noop | when select color |
onClose | Function | noop | when color picker popup close |
onOpen | Function | noop | when color picker popup open |
placement | String | topLeft | one of ['topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |
transitionName | String | css class for animation |
name | type | default | description |
---|---|---|---|
alpha | Number | 100 | opacity of the color |
className | String | '' | Aditional class to be added to component |
color | String | #ff0000 | color board current background color |
defaultAlpha | Number | 100 | opacity of the color |
defaultColor | String | #ff0000 | color board current background color |
enableAlpha | Boolean | true | enable alpha controls |
mode | String | RGB | color mode, support mode 'RGB', 'HSB' or 'HSL' |
onBlur | Function | when picker loose focus | |
onChange | Function | when select color trigger | |
onFocus | Function | when picker focus trigger | |
style | Object | {} | root node CSS style |
rc-color-picker is released under the MIT license.
FAQs
color-picker ui component for react
The npm package rc-color-picker receives a total of 23,282 weekly downloads. As such, rc-color-picker popularity was classified as popular.
We found that rc-color-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.