View as Markdown

API reference: @salmonui/inputs/color-picker

colorNamefunction

import { colorName } from '@salmonui/inputs/color-picker';
function colorName(color: Color): string;

An English description of the color for aria-valuetext and swatch names ('dark vibrant green', 'light gray', 'transparent'). Components take localeText.colorName to replace it.