UNPKG

@nish1896/rhf-mui-components

Version:

A suite of 20+ production-ready react-hook-form components built with material-ui. Fully typed, tree-shakable, and optimized for enterprise-grade forms.

21 lines 606 B
//#region src/utils/color.d.ts 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. */ declare function colorToString(color: ColorObject, excludeAlpha?: boolean): string; //#endregion export { colorToString };