Form: {
    Field: <
        TFieldValues extends FieldValues,
        TFieldName extends string = FieldPath<TFieldValues>,
    >(
        __namedParameters: FormFieldProps<TFieldValues, TFieldName>,
    ) => Element;
    FieldArray: <
        TFieldValues extends FieldValues,
        TFieldName extends string = FieldPath<TFieldValues>,
    >(
        props: FormFieldArrayProps<TFieldValues, TFieldName>,
    ) => Element;
    Input: {
        Options: <
            TFieldValues extends FieldValues,
            TOption extends ItemWithId & { name: string },
        >(
            props: ViewProps & Omit<FormFieldProps<TFieldValues>, "render"> & {
                handleClose: VoidFunction;
                handleSearch?: (text: string) => void;
                hideSearch?: boolean;
                onSelectOption: (option: TOption) => void;
                options: (ItemWithId & TOption)[];
                selectedOptions?: TOption[];
                showOnlySelectedOptions?: boolean;
                title: string;
            } & { selectedOptions?: TOption[] },
        ) => Element;
        Text: ForwardRefExoticComponent<
            TextInputProps & Omit<FormFieldProps<FieldValues>, "render"> & RefAttributes<
                TextInput,
            >,
        >;
    };
    View: <Values extends FieldValues>(
        __namedParameters: FormViewProps<Values>,
    ) => Element;
} = ...

Type declaration

  • Field: <
        TFieldValues extends FieldValues,
        TFieldName extends string = FieldPath<TFieldValues>,
    >(
        __namedParameters: FormFieldProps<TFieldValues, TFieldName>,
    ) => Element
  • FieldArray: <
        TFieldValues extends FieldValues,
        TFieldName extends string = FieldPath<TFieldValues>,
    >(
        props: FormFieldArrayProps<TFieldValues, TFieldName>,
    ) => Element
  • Input: {
        Options: <
            TFieldValues extends FieldValues,
            TOption extends ItemWithId & { name: string },
        >(
            props: ViewProps & Omit<FormFieldProps<TFieldValues>, "render"> & {
                handleClose: VoidFunction;
                handleSearch?: (text: string) => void;
                hideSearch?: boolean;
                onSelectOption: (option: TOption) => void;
                options: (ItemWithId & TOption)[];
                selectedOptions?: TOption[];
                showOnlySelectedOptions?: boolean;
                title: string;
            } & { selectedOptions?: TOption[] },
        ) => Element;
        Text: ForwardRefExoticComponent<
            TextInputProps & Omit<FormFieldProps<FieldValues>, "render"> & RefAttributes<
                TextInput,
            >,
        >;
    }
  • View: <Values extends FieldValues>(
        __namedParameters: FormViewProps<Values>,
    ) => Element