UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

7 lines (6 loc) 299 B
/** * Converts a valid RGB, RGBA, HSL, or HSLA color string to a hex color string. * @param {string} value - The color string to convert. * @returns {string} Returns the hex color string if conversion succeeds, otherwise an empty string. */ export declare function toHex(value: string): string;