# SiColorPickerComponent documentation

**Kind:** component

**Selector:** `si-color-picker`

```
import { SiColorPickerComponent } from '@siemens/element-ng/color-picker';
```

```
component SiColorPickerComponent implements ControlValueAccessor
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [ariaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/color-picker/si-color-picker.component.ts#L118-L120>) | `TranslatableString` | `` $localize`:@@SI_COLOR_PICKER.SELECTED_LABEL:Selected color {{color}}` `` | Aria label for the color input button. |
| [autoClose](<https://github.com/siemens/element/blob/main/projects/element-ng/color-picker/si-color-picker.component.ts#L93-L93>) | `boolean` | `false` | Specifies whether the color popup should automatically close on a color selection. |
| [color](<https://github.com/siemens/element/blob/main/projects/element-ng/color-picker/si-color-picker.component.ts#L86-L86>) | `string \| undefined` |  | The selected color. |
| [colorPalette](<https://github.com/siemens/element/blob/main/projects/element-ng/color-picker/si-color-picker.component.ts#L81-L81>) | `string[]` | `The first 16 colors of the Element data color palette.` | The color palette to choose the colors from. As colors, only valid CSS variable names omitting the `--` prefix or Element color tokens omitting the `$` prefix are supported.<br><br>Note: If custom CSS variables are provided, they need to be defined for both light and dark mode. |
| [colorPaletteAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/color-picker/si-color-picker.component.ts#L130-L132>) | `TranslatableString` | `` $localize`:@@SI_COLOR_PICKER.PALETTE_LABEL:Color palette` `` | Aria label for the color palette. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/color-picker/si-color-picker.component.ts#L108-L108>) | `boolean` | `false` | Specifies whether the color picker component is disabled. |
| [scrollStrategy](<https://github.com/siemens/element/blob/main/projects/element-ng/color-picker/si-color-picker.component.ts#L100-L100>) | `ScrollStrategy` | `defaultConnectedOverlayScrollStrategy()` | Optional CDK scroll strategy used for the color picker overlay. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [colorChange](<https://github.com/siemens/element/blob/main/projects/element-ng/color-picker/si-color-picker.component.ts#L86-L86>) | `string \| undefined` | The selected color. |

### Types Documentation

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
