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

> The ColorPartProps interface of @salmonui/inputs/color-picker: Props shared by ColorArea and ColorSlider.

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

```ts
import type { ColorPartProps } 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 ColorPartProps {
    readonly value?: ColorInput | undefined;
    readonly defaultValue?: ColorInput | undefined;
    readonly onValueChange?: ((color: Color, details: ColorChangeDetails) => void) | undefined;
    readonly onValueCommit?: ((color: Color, details: ColorChangeDetails) => void) | undefined;
    readonly name?: string | undefined;
    readonly form?: string | undefined;
    readonly valueFormat?: ColorFormat | undefined;
    readonly disabled?: boolean | undefined;
    readonly localeText?: ColorPartLocaleText | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly 'aria-label'?: string | undefined;
    readonly 'aria-labelledby'?: string | undefined;
    readonly id?: string | undefined;
}
```

Props shared by ColorArea and ColorSlider.

Members (14):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value?: ColorInput \| undefined;` | optional | Controlled color: a string or a `Color` (a `Color` keeps the hue of grays). |
| `defaultValue` | `readonly defaultValue?: ColorInput \| undefined;` | optional |  |
| `onValueChange` | `readonly onValueChange?: ((color: Color, details: ColorChangeDetails) => void) \| undefined;` | optional | Every change; during a pointer drag at most once per animation frame. |
| `onValueCommit` | `readonly onValueCommit?: ((color: Color, details: ColorChangeDetails) => void) \| undefined;` | optional | The end of a drag, and every keyboard step. |
| `name` | `readonly name?: string \| undefined;` | optional | Name of a hidden input carrying the color in `valueFormat`. |
| `form` | `readonly form?: string \| undefined;` | optional |  |
| `valueFormat` | `readonly valueFormat?: ColorFormat \| undefined;` | optional | Format of the hidden input value. Default `'hexa'`. |
| `disabled` | `readonly disabled?: boolean \| undefined;` | optional |  |
| `localeText` | `readonly localeText?: ColorPartLocaleText \| undefined;` | optional |  |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `aria-label` | `readonly 'aria-label'?: string \| undefined;` | optional |  |
| `aria-labelledby` | `readonly 'aria-labelledby'?: string \| undefined;` | optional |  |
| `id` | `readonly id?: string \| undefined;` | optional |  |
