UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

29 lines (28 loc) 796 B
/// <reference types="react" /> import { KeyboardEvent, PureComponent } from 'react'; export interface Props { autoFocus?: boolean; defaultValue?: string; onChange?: (value: string) => void; onSubmit?: (value: string) => void; onCancel?: () => void; placeholder?: string; onMouseDown?: Function; onKeyDown?: (e: KeyboardEvent<any>) => void; onBlur?: Function; } export interface State { value?: string; } export default class PanelTextInput extends PureComponent<Props, State> { private input?; constructor(props: any); componentWillReceiveProps(props: Props): void; onMouseDown: () => void; onBlur: () => void; render(): JSX.Element; focus(): void; private handleChange; private handleKeydown; private handleRef; }