UNPKG

738 BTypeScriptView Raw
1import { Component, CSSProperties } from "react";
2import { ColorPickerProps, ColorResult } from "../../..";
3import { Classes } from "reactcss";
4
5export interface BlockPickerStylesProps {
6 card: CSSProperties;
7 head: CSSProperties;
8 body: CSSProperties;
9 label: CSSProperties;
10 triangle: CSSProperties;
11 input: CSSProperties;
12}
13
14export interface BlockPickerProps extends ColorPickerProps<BlockPicker> {
15 colors?: string[] | undefined;
16 width?: string | undefined;
17 triangle?: 'hide' | 'top' | undefined;
18 styles?: Partial<Classes<BlockPickerStylesProps>> | undefined;
19 onSwatchHover?(color: ColorResult, event: MouseEvent): void;
20}
21
22export default class BlockPicker extends Component<BlockPickerProps> { }