UNPKG

@chief-editor/brick-control

Version:

Control Brick for chief editor

13 lines (12 loc) 560 B
/// <reference types="react" /> import { IRGBA } from '@co-hooks/color'; import { ColorProps } from './type'; export declare const getRgba: (value: string) => IRGBA; export declare const RGBA2RGBHex: (value: string) => string; export declare const getAlpha: (rgbaString: string) => number; export interface IColorPickerProps { value: string; onValueChange: (color: string) => void; } export declare const ColorPickerComp: ({ value, onValueChange }: IColorPickerProps) => JSX.Element; export declare function ColorBrick(props: ColorProps): JSX.Element;