# iteratePaletteSwatches

```ts
function iteratePaletteSwatches(palette): {
  hex: string;
  key: keyof AssetPalette;
  label: string;
}[];
```

Defined in: packages/asset-client/dist/index.d.ts:223

Iterate the palette in display order (dominant first, then vibrant +
muted families). Useful for rendering a swatch strip in admin UIs.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `palette` | \| [`AssetPalette`](/api/nitida/sdk/type-aliases/assetpalette/) \| `null` \| `undefined` |

## Returns

\{
  `hex`: `string`;
  `key`: keyof [`AssetPalette`](/api/nitida/sdk/type-aliases/assetpalette/);
  `label`: `string`;
\}[]