UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

23 lines (22 loc) 708 B
import * as React from 'react'; export interface EditableLabelProps { className?: string; canEdit: boolean; editClassName?: string; editOnClick: boolean; editStyle?: React.CSSProperties; focusOnMount?: boolean; htmlTag: any; initialValue: string; labelClassName?: string; labelStyle?: React.CSSProperties; onBeforeEdit?: () => null; onSave: (savedValue: string) => string | void; setCursorOnFocus?: 'endOfSelection' | 'selectAll'; stopCancelPropagation?: boolean; stopEnterPropagation?: boolean; } export interface EditableLabelState { editing: boolean; } export declare const EditableLabel: React.FC<EditableLabelProps>;