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

> The ColorSwatchPicker component of @salmonui/inputs/color-picker: A palette as an APG listbox laid out as a grid: one tab stop (roving tabindex), arrows move by cell and row (ArrowLeft / ArrowRight mirrored in right-to-left content), Home / End to the row ends, Ctrl+Home / Ctrl+End to the first and last swatch, Enter or Space (or a click) selects. Groups are labelled role="group"s.

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

```ts
import { ColorSwatchPicker } 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: component

```ts
function ColorSwatchPicker(props: ColorSwatchPickerProps): ReactNode;
```

A palette as an APG listbox laid out as a grid: one tab stop (roving tabindex), arrows move by cell and
row (ArrowLeft / ArrowRight mirrored in right-to-left content), Home / End
to the row ends, Ctrl+Home / Ctrl+End to the first and last swatch, Enter
or Space (or a click) selects. Groups are labelled `role="group"`s.

Props: [`ColorSwatchPickerProps`](https://salmonui.dev/docs/reference/inputs/color-picker/ColorSwatchPickerProps) (its members are the props)
