View as Markdown

API reference: @salmonui/inputs/color-picker

ColorSwatchItemtype

import type { ColorSwatchItem } from '@salmonui/inputs/color-picker';
type ColorSwatchItem = string | {
    readonly value: string;
    readonly label?: string | undefined;
};

A palette entry: a color string, or a color with its accessible name.