# react-color

> A Collection of Color Pickers from Sketch, Photoshop, Chrome & more

Latest version **2.19.3** (published 2020-10-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; esm support; no vulnerabilities; high quality score; popular repo.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.19.3 |
| Published | 2020-10-28 |
| First published | 2015-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/react-color) |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 436.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12322 |
| Author | case |
| Maintainers | case |
| Keywords | react, color picker, react-component, colorpicker, picker, sketch, chrome, photoshop, material design, popup |

## Links

- npm: https://www.npmjs.com/package/react-color
- Repository: https://github.com/casesandberg/react-color
- Homepage: http://casesandberg.github.io/react-color/
- Issues: https://github.com/casesandberg/react-color/issues
- npm.io page: https://npm.io/package/react-color

## Dependencies (7)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [reactcss](https://npm.io/package/reactcss.md) ^1.2.0
- [lodash-es](https://npm.io/package/lodash-es.md) ^4.17.15
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.10
- [tinycolor2](https://npm.io/package/tinycolor2.md) ^1.4.1
- [@icons/material](https://npm.io/package/@icons/material.md) ^0.2.4
- [material-colors](https://npm.io/package/material-colors.md) ^1.2.1

## 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

- 2.19.3 (latest) — 2020-10-28
- 3.0.0-beta.3 (beta) — 2017-09-25
- 2.19.1 — 2020-10-27
- 2.18.1 — 2020-05-04
- 2.18.0 — 2020-01-08
- 2.17.3 — 2019-04-29
- 2.17.2 — 2019-04-27
- 2.17.1 — 2019-04-20
- 2.17.0 — 2018-12-21
- 2.14.1 — 2018-04-09
- 2.14.0 — 2018-02-28
- 3.0.0-beta.2 — 2017-09-25
- 3.0.0-beta.1 — 2017-09-25
- 2.13.8 — 2017-09-08
- 2.13.7 — 2017-09-07
- … 62 more at https://npm.io/package/react-color/versions

## README

# [React Color](http://casesandberg.github.io/react-color/)

[![Npm Version][npm-version-image]][npm-version-url]
[![Build Status][travis-svg]][travis-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

* **13 Different Pickers** - Sketch, Photoshop, Chrome and many more

* **Make Your Own** - Use the building block components to make your own

## Demo

![Demo](https://media.giphy.com/media/26FfggT53qE304CwE/giphy.gif)

[**Live Demo**](http://casesandberg.github.io/react-color/)

## Installation & Usage

```sh
npm install react-color --save
```

### Include the Component

```js
import React from 'react'
import { SketchPicker } from 'react-color'

class Component extends React.Component {

  render() {
    return <SketchPicker />
  }
}
```
You can import `AlphaPicker` `BlockPicker` `ChromePicker` `CirclePicker` `CompactPicker` `GithubPicker` `HuePicker` `MaterialPicker` `PhotoshopPicker` `SketchPicker` `SliderPicker` `SwatchesPicker` `TwitterPicker` respectively.

> 100% inline styles via [ReactCSS](http://reactcss.com/)

[travis-svg]: https://travis-ci.org/casesandberg/react-color.svg
[travis-url]: https://travis-ci.org/casesandberg/react-color
[license-image]: http://img.shields.io/npm/l/react-color.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/react-color.svg
[downloads-url]: http://npm-stat.com/charts.html?package=react-color
[npm-version-image]: https://img.shields.io/npm/v/react-color.svg
[npm-version-url]: https://www.npmjs.com/package/react-color

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