@programmerraj/rc-color-picker
Notice: This package is a fork of
rc-color-picker
.rc-color-picker
has outdated dependencies which are deprecated and have vulnerabilities.
Development
You can use Storybook to see local changes.
npm run storybook
Example
Online example: http://chocolateloverraj.github.io/color-picker/
Features
- Support color modes RGB and HSL
- Slider for hue
- Slider for alpha
- Preview
- Popup
- TypeScript
rc-color-picker
Differences from - Up to date dependencies without security vulnerabilities
- TypeScript
- Uses non deprecated React functions
- Maintained
- API for controlling color is different
Contributing
Please follow ts-standard code style. You can run npm run lint
to check for any code style errors.
Possible New Features
- Convenienter API
- New color modes
- More options related to popup
Install
Usage
import { ColorPicker } from '@chocolateloverraj/rc-color-picker'
import React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(<ColorPicker />, container)
API
See the docs at http://chocolateloverraj.github.io/color-picker/