UNPKG

houseform

Version:

Simple to use React forms, where your validation and UI code live together in harmony.

11 lines (10 loc) 636 B
import { ForwardedRef } from "react"; import { FieldInstance, FieldInstanceProps } from "../field"; export interface FieldArrayItemRenderProps<T = any, F = any> extends FieldInstanceProps<T, F> { children: (props: FieldInstance<T, F>) => JSX.Element; memoChild?: any[]; } export declare function FieldArrayItemComp<T = any, F = any>(props: FieldArrayItemRenderProps<T, F>, ref: ForwardedRef<FieldInstance<T, F>>): JSX.Element; export declare const FieldArrayItem: <T = any, F = any>(props: FieldArrayItemRenderProps<T, F> & { ref?: ForwardedRef<FieldInstance<T, F>> | undefined; }) => ReturnType<typeof FieldArrayItemComp>;