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

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

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

```ts
import type { ColorSliderProps } 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 ColorSliderProps extends ColorPartProps {
    readonly channel: 'hue' | 'alpha';
    readonly orientation?: 'horizontal' | 'vertical' | undefined;
    readonly step?: number | undefined;
    readonly ref?: Ref<HTMLDivElement> | undefined;
}
```

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `channel` | `readonly channel: 'hue' \| 'alpha';` |  | The channel: `'hue'` (0-360 degrees) or `'alpha'` (0-100 percent). |
| `orientation` | `readonly orientation?: 'horizontal' \| 'vertical' \| undefined;` | optional | Default `'horizontal'`; vertical sliders grow upward and never mirror. |
| `step` | `readonly step?: number \| undefined;` | optional | Arrow key step in channel units; 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 |  |
