An open API service indexing awesome lists of open source software.

https://github.com/siamahnaf/react-color-pick

An easy to use canva style react color picker tool.
https://github.com/siamahnaf/react-color-pick

canva-style-color-picker color-picker-component color-selector-react modern-color-picker-react react-color-input react-color-palette react-color-picker react-design-tools react-eyedropper-tool ui-color-picker

Last synced: 3 months ago
JSON representation

An easy to use canva style react color picker tool.

Awesome Lists containing this project

README

          




Siam Ahnaf



# @siamf/react-color-pick
An easy to use canva style react color picker tool.

Buy Me A Coffee

- Highly customizable
- Easy to use
- Tailwind and non-tailwind support

# Demo

See the live demo from [here](https://react-color-pick-docs.vercel.app/)

# Installation

```bash
$ npm i @siamf/react-color-pick
```

# Usage
```javascript
"use client"
import { useState } from "react";
import { ColorPicker } from "@siamf/react-color-pick";

const Sample = () => {
const [color, setColor] = useState("#C11FB5");

return (


setColor(e)}
/>

);
};

export default Sample;
```

# Styling (CSS)

If you are not using tailwind css, import the css file-

```javascript
import "@siamf/react-color-pick/dist/index.css"
```

If you are using tailwind css-

```css
@source "../../node_modules/@siamf/react-color-pick";

//Adjust the package path if need
```

# Available props


Name
Description
Type
Default/Required


value
Default Color Value
string
optional


onChange
Watch color change
(color:string) => void
optional


className
Main Container className
string
optional


selectorClassName
Color selector gradient box className
string
optional


selectorDotClassName
Color selector dot className
string
optional


hueClassName
Hue slider bar className
string
optional


hueSliderClassName
Hue slider dot className
string
optional


colorPreviewClassName
Color preview circle className
string
optional


colorInputClassName
Color input field className
string
optional


eyeDropClassName
Eye drop button className
string
optional

# Stay in touch

- Author - [Siam Ahnaf](https://www.siamahnaf.com/)
- Website - [https://www.siamahnaf.com/](https://www.siamahnaf.com/)
- LinkedIn - [https://www.linkedin.com/in/siamahnaf/](https://www.linkedin.com/in/siamahnaf/)
- Github - [https://github.com/siamahnaf](https://github.com/siamahnaf)