UNPKG

648 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[];
13 width?: string;
14 triangle?: 'hide' | 'top-left' | 'top-right';
15 styles?: Partial<Classes<GithubPickerStylesProps>>;
16 onSwatchHover?(color: ColorResult, event: MouseEvent): void;
17}
18
19export default class GithubPicker extends Component<GithubPickerProps> { }