rfa
Version:
**React Form Architect** is an ultimate solution for creating and rendering forms in React. Its main focus is to provide users with a tool to define, render and share a form in a browser.
23 lines (22 loc) • 931 B
TypeScript
/// <reference types="react" />
import { TextFieldProps } from '@material-ui/core';
import { FormContextType, FormControlType } from '../../../types/common-form-components-types';
export declare type TreeNodeInputPayload = {
name: string;
value: any;
}[];
export declare type TreeNodeInputType = {
id: string;
descendents?: TreeNodeInputType[];
data?: TreeNodeInputPayload;
};
export declare type TreeNodeInputProps = TreeNodeInputType & {
formContext: FormContextType & FormControlType;
isEndingNode?: boolean;
level?: number;
allowUserToDefineData?: boolean;
nodeLabel?: string;
required?: boolean;
onDelete?: (id: string) => void;
} & TextFieldProps;
export declare const TreeNodeInput: ({ id, formContext, data, descendents, allowUserToDefineData, isEndingNode, level, onDelete, nodeLabel, required, ...textInputProps }: TreeNodeInputProps) => JSX.Element;