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

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

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

```ts
import type { ColorSwatchProps } 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 ColorSwatchProps {
    readonly color: ColorInput | null;
    readonly 'aria-label'?: string | undefined;
    readonly colorName?: ((color: Color) => string) | undefined;
    readonly id?: string | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `color` | `readonly color: ColorInput \| null;` |  | The color; `null` draws the "no color" swatch. |
| `aria-label` | `readonly 'aria-label'?: string \| undefined;` | optional | Accessible name; default the color's description (`'dark vibrant green'`) or `'No color'`. Pass `''` to make it decorative. |
| `colorName` | `readonly colorName?: ((color: Color) => string) \| undefined;` | optional | Replaces the English description when no `aria-label` is given. |
| `id` | `readonly id?: string \| undefined;` | optional |  |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
