# react-color-picker-wheel

> Color picker component for React.js using color wheel

Latest version **0.1.6** (published 2020-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-color-picker-wheel
pnpm add react-color-picker-wheel
yarn add react-color-picker-wheel
bun add react-color-picker-wheel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2020-09-13 |
| First published | 2020-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 38.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | ahmetfeyzihalac |
| Maintainers | ahmetfeyzi |
| Keywords | react, react-color, react-color-picker, color, color-picker, color-wheel |

## Links

- npm: https://www.npmjs.com/package/react-color-picker-wheel
- Repository: https://github.com/ahmethalac/react-color-picker-wheel
- Homepage: https://ahmethalac.github.io/react-color-picker-wheel/
- Issues: https://github.com/ahmethalac/react-color-picker-wheel/issues
- npm.io page: https://npm.io/package/react-color-picker-wheel

## Dependencies (2)

- [react](https://npm.io/package/react.md) 16.13.1
- [prop-types](https://npm.io/package/prop-types.md) 15.7.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2020-09-13
- 0.1.3 — 2020-09-12
- 0.1.2 — 2020-09-12
- 0.1.1 — 2020-09-12
- 0.1.0 — 2020-09-10

## README

# react-color-picker-wheel


[![npm version](https://badge.fury.io/js/react-color-picker-wheel.svg)](https://badge.fury.io/js/react-color-picker-wheel)

**Color picker component for React.js using color wheel**

![demo](./media/example.gif)

Demo can be found here: https://ahmethalac.github.io/react-color-picker-wheel/

## Installation

> npm install react-color-picker-wheel  
>yarn add react-color-picker-wheel

## Usage

```javascript
import ColorPicker from 'react-color-picker-wheel';
// ...
return <ColorPicker
    initialColor="#FF0000"
    onChange={(color => console.log(color))}
    //Console output => { hex: "#FF0000", rgb : { r: 255, g: 0, b: 0 } , hsl : { h: 0, s: 100, l: 50 }
    size={300}
/>;
```

## Properties

| Name | Type | Default Value | Description
| ---- | ---- | ------------- | -----------
| initialColor | ```Hex``` | ```"#FF0000"``` | Color to render onto color wheel. It can be hex(#ffffff) or rgb object ({r:0, g:0, b:0})
| onChange | ```func``` | ```()=>{}``` | Function which will be called when color change occurs. Function parameter is a color object
| size | ```number``` | ```100``` | Size of the container in pixels (Container is a square)

---
_Source: https://npm.io/package/react-color-picker-wheel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
