
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
@rc-component/color-picker
Advanced tools
React Color Picker.
npm install
npm start
import ColorPicker from '@rc-component/color-picker';
import '@rc-component/color-picker/assets/index.css';
export default () => <ColorPicker />;
| Property | Description | Type | Default |
|---|---|---|---|
| value | Value of color | string | Color | - |
| defaultValue | Default value of color | string | Color | - |
| onChange | Callback when value is changed | (value: Color, type: hue | alpha) => void | - |
| onChangeComplete | Callback when drag is stop | (value: Color, type: hue | alpha) => void | - |
| disabled | Disabled ColorPicker | boolean | false |
| disabledAlpha | Disabled alpha slider | boolean | false |
| panelRender | Custom panel render | (panel: React.ReactElement) => React.ReactElement | - |
| Property | Description | Type | Default |
|---|---|---|---|
| toHexString | Convert to hex format color string, like #ffffff | () => string | - |
| toHsb | Convert to hsb object, like { h: 0, s: 0, b: 0, a: 0 } | () => ({ h: number, s: number, b: number, a number }) | - |
| toHsbString | Convert to hsb format color string, like hsba(0, 0%, 0%, 0) | () => string | - |
| toRgb | Convert to rgb object, like { r: 0, g: 0, b: 0, a: 0 } | () => ({ r: number, g: number, b: number, a number }) | - |
| toRgbString | Convert to rgb format color string, like rgba(0, 0, 0, 0) | () => string | - |
npm test
or
npm run coverage
@rc-component/color-picker is released under the MIT license.
react-color is a popular color picker component for React applications. It offers a variety of color picker types, such as Sketch, Photoshop, and Chrome pickers. Compared to @rc-component/color-picker, react-color provides more predefined picker styles and is widely used in the React community.
react-colorful is a lightweight and fast color picker component for React. It focuses on performance and simplicity, providing a minimalistic interface for color selection. While @rc-component/color-picker offers more customization options, react-colorful is ideal for applications that require a straightforward and efficient color picker.
rc-color-picker is another color picker component for React, developed by the same team behind @rc-component/color-picker. It provides a similar set of features but with a different API and design. It is a good alternative for users who prefer a different approach to color picking.
FAQs
React Color Picker
The npm package @rc-component/color-picker receives a total of 1,474,520 weekly downloads. As such, @rc-component/color-picker popularity was classified as popular.
We found that @rc-component/color-picker demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.