UNPKG

678 BTypeScriptView Raw
1import { Component, ClassAttributes, CSSProperties } from "react";
2import { Color, ColorChangeHandler } from "../../..";
3
4export interface EditableInputStyles {
5 input?: CSSProperties | undefined;
6 label?: CSSProperties | undefined;
7 wrap?: CSSProperties | undefined;
8}
9
10export interface EditableInputProps extends ClassAttributes<EditableInput> {
11 color?: Color | undefined;
12 label?: string | undefined;
13 onChange?: ColorChangeHandler | undefined;
14 style?: EditableInputStyles | undefined;
15 value?: any;
16 dragLabel?: string | undefined;
17 dragMax?: string | undefined;
18}
19
20export default class EditableInput extends Component<EditableInputProps> {}