@nish1896/rhf-mui-components
Version:
A suite of 20+ reusable Material UI components for React Hook Form to minimize your time and effort in creating and styling forms
20 lines (19 loc) • 569 B
TypeScript
type ColorObject = {
r?: number;
g?: number;
b?: number;
h?: number;
s?: number;
v?: number;
a?: number;
};
/**
* Converts a color object to a string in `rgb` or `hsv` format.
*
* @param color - An object containing values as `rgb` or `hsv` components.
* @param type - `'rgb'` or `'hsv'` to specify the color model.
* @param excludeAlpha - Whether to exclude the alpha value in the output.
* @returns The formatted color string.
*/
export declare function colorToString(color: ColorObject, excludeAlpha?: boolean): string;
export {};