# ColorPickerChangeDetails (@salmonui/inputs/color-picker)

> The ColorPickerChangeDetails interface of @salmonui/inputs/color-picker: Second argument of onValueChange and onValueCommit.

Canonical: https://salmonui.dev/docs/reference/inputs/color-picker/ColorPickerChangeDetails

```ts
import type { ColorPickerChangeDetails } from '@salmonui/inputs/color-picker';
```

Entry index: https://salmonui.dev/docs/reference/inputs/color-picker (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/color-picker.md).

## Reference

Kind: interface

```ts
interface ColorPickerChangeDetails {
    readonly source: ColorChangeSource;
    readonly reason: 'area' | 'hue' | 'alpha' | 'field' | 'swatch' | 'recent' | 'clear' | 'apply' | 'cancel' | 'reset';
    readonly color: Color | null;
}
```

Second argument of `onValueChange` and `onValueCommit`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: ColorChangeSource;` |  |  |
| `reason` | `readonly reason: 'area' \| 'hue' \| 'alpha' \| 'field' \| 'swatch' \| 'recent' \| 'clear' \| 'apply' \| 'cancel' \| 'reset';` |  | The part that changed the color; `'apply'` the Apply button (commit only), `'cancel'` a discarded pick, `'reset'` form reset. |
| `color` | `readonly color: Color \| null;` |  |  |
