frmx
Version:
Simple, Performant, Lightweight React Forms
17 lines (16 loc) • 589 B
TypeScript
import React from 'react';
interface childrenInterface {
path: string;
items: Array<any>;
removeItem(index: number): void;
addItem(): void;
disabled: boolean;
}
interface FieldArrayPropsInterface {
children?(object: childrenInterface): React.ReactElement;
path: string;
model: any;
startWithOneMore?: boolean;
}
export default function FieldArray({ children, path, model, startWithOneMore, }: FieldArrayPropsInterface): ((object: childrenInterface) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) | JSX.Element | null;
export {};