react-chrono
Version:
A Modern Timeline component for React
14 lines • 553 B
TypeScript
import { ColorFormat } from './utils';
interface UseBackgroundOptions {
format?: ColorFormat | 'auto';
}
/**
* Hook that converts a color to RGBA format with opacity
* @param color - The color string (hex, rgb, rgba, hsl, hsla)
* @param opacity - The opacity value (0-1)
* @param options - Additional options
* @returns The color in RGBA format with the specified opacity
*/
export declare const useBackground: (color?: string, opacity?: number, options?: UseBackgroundOptions) => string;
export {};
//# sourceMappingURL=useBackground.d.ts.map