UNPKG

@intuitionrobotics/thunderstorm

Version:
23 lines (22 loc) 696 B
import * as React from 'react'; import { StorageKey } from '../modules/StorageModule'; import { BaseComponent } from '../core/BaseComponent'; export type FieldEditorProps = { isEditing: boolean; value?: string; storageKey: StorageKey<string>; inputStyle?: React.CSSProperties; labelStyle?: React.CSSProperties; onAccept?: () => void; onCancel?: () => void; onBlur?: () => void; id: string; placeholder?: string; }; export declare class FieldEditor extends BaseComponent<FieldEditorProps> { constructor(props: FieldEditorProps); onChange: (value: string) => void; private renderInput; private renderLabel; render(): React.JSX.Element; }