react-dynamic-input
Version:
An input that can be replicated with a button, each input has its own state
23 lines (22 loc) • 606 B
TypeScript
import * as React from "react";
export interface userPermeablePropzObject {
[key: string]: any;
}
export interface DynamicInputProps {
addButtonText?: string;
setInput: Function;
input: Array<userPermeablePropzObject>;
submitButtonText?: string;
onSubmit?: Function;
inputName: string;
addPosition?: string;
type?: string;
placeholderText?: string;
placeholderNumbered?: boolean;
removeText?: string;
toolTip?: boolean;
toolTipText?: string;
label?: string;
}
declare const DynamicInput: React.FC<DynamicInputProps>;
export default DynamicInput;