UNPKG

696 BTypeScriptView Raw
1import { Component, CSSProperties } from "react";
2import { ColorPickerProps, ColorResult } from "../../..";
3import { Classes } from "reactcss";
4
5export interface GithubPickerStylesProps {
6 card: CSSProperties;
7 triangle: CSSProperties;
8 triangleShadow: CSSProperties;
9}
10
11export interface GithubPickerProps extends ColorPickerProps<GithubPicker> {
12 colors?: string[] | undefined;
13 width?: string | undefined;
14 triangle?: 'hide' | 'top-left' | 'top-right' | undefined;
15 styles?: Partial<Classes<GithubPickerStylesProps>> | undefined;
16 onSwatchHover?(color: ColorResult, event: MouseEvent): void;
17}
18
19export default class GithubPicker extends Component<GithubPickerProps> { }