3.0.1 • Published 1 year ago

@programmerraj/rc-color-picker v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@programmerraj/rc-color-picker

License npm version npm download TS-Standard - Typescript Standard Style Guide

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

rc-color-picker

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/