UNPKG

699 BTypeScriptView Raw
1import { Component, CSSProperties } from "react";
2import { ColorPickerProps, ColorResult } from "../../..";
3import { Classes } from "reactcss";
4
5export interface SwatchesPickerStylesProps {
6 picker: CSSProperties;
7 overflow: CSSProperties;
8 body: CSSProperties;
9 clear: CSSProperties;
10}
11
12export interface SwatchesPickerProps extends ColorPickerProps<SwatchesPicker> {
13 colors?: string[][] | undefined;
14 height?: number | undefined;
15 width?: number | undefined;
16 styles?: Partial<Classes<SwatchesPickerStylesProps>> | undefined;
17 onSwatchHover?(color: ColorResult, event: MouseEvent): void;
18}
19
20export default class SwatchesPicker extends Component<SwatchesPickerProps> { }