API reference: @salmonui/inputs/color-picker
ColorPartLocaleTextinterface
import type { ColorPartLocaleText } from '@salmonui/inputs/color-picker';interface ColorPartLocaleText {
readonly saturation?: string;
readonly brightness?: string;
readonly hue?: string;
readonly alpha?: string;
readonly colorName?: (color: Color) => string;
readonly hueName?: (hue: number) => string;
}
Strings of the color parts; colorName and hueName replace the English descriptions in aria-valuetext.
| Name | Signature | Description |
|---|---|---|
saturationoptional | readonly saturation?: string; | |
brightnessoptional | readonly brightness?: string; | |
hueoptional | readonly hue?: string; | |
alphaoptional | readonly alpha?: string; | |
colorNameoptional | readonly colorName?: (color: Color) => string; | |
hueNameoptional | readonly hueName?: (hue: number) => string; | Name of a hue (0-360 degrees) in the hue slider's |