UNPKG

@chief-editor/ui

Version:

UI Component for chief editor

16 lines (15 loc) 678 B
import { CSSProperties, HTMLAttributes } from 'react'; import { UnionOmit } from '@co-hooks/util'; import { IOffset } from '@co-hooks/dom'; import { IRcPlacement } from '@rc-hooks/popper'; import { IColorPanel } from '../color-panel'; import { IColorInput } from './ColorInput'; export declare type IColorPicker = IColorPanel & Omit<IColorInput, 'triggerId'>; export declare type IColorPickerProps = UnionOmit<IColorPicker, HTMLAttributes<HTMLDivElement>> & { onShow?: () => void; onHide?: () => void; colorBoardStyle?: CSSProperties; placement?: IRcPlacement; offset?: IOffset; }; export declare function ColorPicker(props: IColorPickerProps): JSX.Element;