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

> The ColorSwatch component of @salmonui/inputs/color-picker: A color preview: role="img" named by the color, the color over a checkerboard so alpha shows, or a struck-through box for no color. Pure markup, server rendered.

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

```ts
import { ColorSwatch } 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 ColorSwatch(props: ColorSwatchProps): ReactNode;
```

A color preview: `role="img"` named by the color, the
color over a checkerboard so alpha shows, or a struck-through box for no
color. Pure markup, server rendered.

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