# Color Picker

Select RGB, HSV, or HEX colors with a React picker that includes a color panel, clipboard controls, and eyedropper support.

[Read on UI Layouts](https://www.ui-layouts.com/components/color-picker)

Example: `default-color-picker` · [default-color-picker registry source](https://www.ui-layouts.com/r/default-color-picker.json)

This interactive color picker component demonstrates advanced color selection with React Colorful integration, perfect for design tools, theme customizers, and web applications requiring precise color management.

## Raws

Example: `raws-color-picker` · [raws-color-picker registry source](https://www.ui-layouts.com/r/raws-color-picker.json)

The raw color picker implementation provides essential color selection functionality with RGB, HSV, and hex support, ideal for developers seeking lightweight color picker solutions.

## Installation

```bash
npx uilayouts@latest add color-picker
```

```bash
npx shadcn@latest add 'https://www.ui-layouts.com/r/color-picker.json'
```

```bash
npm install react-colorful
```

[color-picker registry source](https://www.ui-layouts.com/r/color-picker.json)

## Props

| Props           | Type                      | Default | Description                               |
| --------------- | ------------------------- | ------- | ----------------------------------------- |
| `color`         | `string`                  | —       | The current color value.                  |
| `onChange`      | `(color: string) => void` | —       | Callback fired when the color is changed. |
| `label`         | `string`                  | —       | Label displayed above the color picker.   |
| `isEyeDroppper` | `boolean`                 | `false` | Whether to enable the eyedropper feature. |
| `className`     | `string`                  | `false` | Whether to enable the eyedropper feature. |
