Link Search Menu Expand Document (external link)

Home > @department-of-veterans-affairs/va-forms-system-core > ArrayFieldProps

ArrayFieldProps type

The prop type for the Array Field Component

Signature:

export declare type ArrayFieldProps<T> = FieldProps<T[]> & {
    name: string;
    label: string;
    arrayFieldSchema: Record<string, unknown>;
    FieldArrayTemplate: (props: {
        data: T;
        index: number;
    }) => React.ReactNode;
    minLength?: number;
    maxLength?: number;
};

References: FieldProps