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

> The ColorAreaProps interface of @salmonui/inputs/color-picker.

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

```ts
import type { ColorAreaProps } 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 ColorAreaProps extends ColorPartProps {
    readonly step?: number | undefined;
    readonly ref?: Ref<HTMLDivElement> | undefined;
}
```

Members (16):

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