riec
Version:
Modern React component for inline edit of text/select values, written in Typescript
21 lines (20 loc) • 516 B
TypeScript
import React from 'react';
import InputType from './inputType';
interface InputProps {
value: any;
type: InputType;
editProps?: {
[key: string]: any;
};
editClassProp: {
className: string;
} | {};
options: any[];
valueKey: string;
labelKey: string;
handleChange: (value: any) => void;
handleKeyDown: React.KeyboardEventHandler;
handleBlur: React.FocusEventHandler;
}
declare const Input: React.FC<InputProps>;
export default Input;