UNPKG

857 BTypeScriptView Raw
1import { Component, CSSProperties } from "react";
2import { ColorPickerProps, ColorResult } from "../../..";
3import { Classes } from "reactcss";
4
5export interface TwitterPickerStylesProps {
6 card: CSSProperties;
7 body: CSSProperties;
8 label: CSSProperties;
9 triangle: CSSProperties;
10 triangleShadow: CSSProperties;
11 hash: CSSProperties;
12 input: CSSProperties;
13 swatch: CSSProperties;
14 clear: CSSProperties;
15}
16
17export interface TwitterPickerProps extends ColorPickerProps<TwitterPicker> {
18 colors?: string[] | undefined;
19 width?: string | undefined;
20 triangle?: 'hide' | 'top-left' | 'top-right' | undefined;
21 styles?: Partial<Classes<TwitterPickerStylesProps>> | undefined;
22 onSwatchHover?(color: ColorResult, event: MouseEvent): void;
23}
24
25export default class TwitterPicker extends Component<TwitterPickerProps> { }