pick-datetime-react
Version:
Datetime picker for React
12 lines (11 loc) • 388 B
TypeScript
/**
* Generates a rgba/rgb color string from a hex color string
* @param hex Hex color string
* @param alpha Alpha value
* @returns rgba/rgb color string
* @example
* hexToRgba('#000000', 0.5) // returns rgba(0, 0, 0, 0.5)
* hexToRgba('#000000') // returns rgb(0, 0, 0)
* @example
*/
export declare const hexToRGB: (hex: string, alpha?: number | undefined) => string;