# c5-pick-color

> Install:

Latest version **0.0.2** (published 2022-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install c5-pick-color
pnpm add c5-pick-color
yarn add c5-pick-color
bun add c5-pick-color
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-01-17 |
| First published | 2022-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 87.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | C5m7b4 |
| Maintainers | c5m7b4 |

## Links

- npm: https://www.npmjs.com/package/c5-pick-color
- npm.io page: https://npm.io/package/c5-pick-color

## Dependencies (2)

- [tinycolor2](https://npm.io/package/tinycolor2.md) ^1.4.2
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.16.7

## Recent versions

- 0.0.2 (latest) — 2022-01-17
- 0.0.1 — 2022-01-17

## README

# c5-pick-color

Install:

```js
  npm install c5-pick-color
```

sample usage:

```js
import ColorPicker from 'c5-pick-color';

const App = () => {
  const [color, setColor] = useState('#000000');
  const [showPicker, setShowPicker] = useState(false);

  return (
    <div>
      <button onClick={() => setShowPicker(!showPicker)}>Click me</button>
      {showPicker && (
        <ColorPicker color={color} onChange={(color) => setColor(color.hex)} />
      )}
    </div>
  );
};
```

I wanted to understand how to write a color picker component so I rewrote all the code
from react-pick-color. This was a fun journey. I plan on making a few changed:

[ ] make modal wrapper around Picker so it will pop up where the mouse is

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