UNPKG

mat-color-picker

Version:

<span class="badge-npmversion">[![npm version](https://badge.fury.io/js/mat-color-picker.svg)](https://badge.fury.io/js/mat-color-picker)</span> <span class="badge-npmdownloads"><a href="https://npmjs.org/package/mat-color-picker" title="View this project

24 lines (23 loc) 718 B
/** Contant used as empty color */ export declare const EMPTY_COLOR = "none"; /** * This interface represents one color. Using this interface instead simple string * will help screen readers, because the text attribute ir set to the aria-label of * the option */ export interface MatColorPickerItem { text: string; value: string; } export declare type MatColorPickerOption = string | MatColorPickerItem; /** * Verify if color has # as a first char. If not, add this char * to the color * @param color string */ export declare function coerceHexaColor(color: string): string; /** * Validate if the color is valid * @param color string */ export declare function isValidColor(color: string): boolean;