Package Exports
- @programmerraj/rc-color-picker
- @programmerraj/rc-color-picker/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@programmerraj/rc-color-picker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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
Differences from rc-color-picker
- 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/