# colorpicker

```ts
import { ColorPickerModule } from '@anguless/angulux/colorpicker';
```

## ColorPicker

`agl-colorPicker, agl-colorpicker, agl-color-picker` — component

Inherits every input, output and slot of `BaseEditableHolder` — see [baseeditableholder.md](baseeditableholder.md).

ColorPicker is an input to choose a colour, in a popup panel or inline.

Keyboard: on the input, Space opens or closes the panel, ArrowDown opens it and then moves into
it, and Escape or Tab closes it. The colour area is a slider: ArrowLeft and ArrowRight set the
saturation, ArrowUp and ArrowDown the brightness, by 1 or by 10 with Shift. The hue bar is a
vertical slider: the arrow keys move the hue by 1, or by 10 with Shift, and Home and End go to
0 and 360. In the popup panel, Tab goes between the two, and Escape closes it with focus back
on the input.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `styleClass` | `string \| undefined` | _not documented_ | Style class of the component. **Deprecated:** since v20.0.0, use `class` instead. |
| `showTransitionOptions` | `string` | _not documented_ | Transition options of the show animation. **Deprecated:** since v21.0.0, use `motionOptions` instead. |
| `hideTransitionOptions` | `string` | _not documented_ | Transition options of the hide animation. **Deprecated:** since v21.0.0, use `motionOptions` instead. |
| `inline` | `boolean \| undefined` | _not documented_ | Whether to display as an overlay or not. |
| `format` | `'hex' \| 'rgb' \| 'hsb'` | _not documented_ | Format to use in value binding. |
| `tabindex` | `string \| undefined` | _not documented_ | Index of the element in tabbing order. |
| `inputId` | `string \| undefined` | _not documented_ | Identifier of the focus input to match a label defined for the dropdown. |
| `autoZIndex` | `boolean` | _not documented_ | Whether to automatically manage layering. |
| `autofocus` | `boolean \| undefined` | _not documented_ | When present, it specifies that the component should automatically get focus on load. |
| `defaultColor` | `string \| undefined` | _not documented_ | Default color to display initially when model value is not present. |
| `appendTo` | `HTMLElement \| ElementRef \| TemplateRef<any> \| 'self' \| 'body' \| null \| undefined \| any` | `'self'` | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
| `overlayOptions` | `OverlayOptions \| undefined` | _not documented_ | Whether to use overlay API feature. The properties of overlay API can be used like an object in it. |
| `motionOptions` | `MotionOptions \| undefined` | _not documented_ | The motion options. |

| Output | Type | Description |
| --- | --- | --- |
| `onChange` | `EventEmitter<ColorPickerChangeEvent>` | Callback to invoke on value change. |
| `onShow` | `EventEmitter<any>` | Callback to invoke on panel is shown. |
| `onHide` | `EventEmitter<any>` | Callback to invoke on panel is hidden. |
