Hex Core JS
    Preparing search index...

    Type Alias SubFormRenderProps<T>

    type SubFormRenderProps<T extends FormValues> = {
        canAddItem: boolean;
        canRemoveItem: boolean;
        formState: FormState<T>;
        index: number;
        isEditingArray: boolean;
        maxItems?: number;
        minItems: number;
        numItems: number;
        onRemoveClick: () => void;
    }

    Type Parameters

    Index

    Properties

    canAddItem: boolean

    Indicates whether an item can be added and still keep the whole value valid with respect to count validation.

    canRemoveItem: boolean

    Indicates whether an item can be removed and still keep the whole value valid with respect to count validation.

    formState: FormState<T>
    index: number
    isEditingArray: boolean
    maxItems?: number
    minItems: number
    numItems: number
    onRemoveClick: () => void