UNPKG

styled-hook-form

Version:

React form library for styled-components based on grommet and react-hook-form

25 lines (24 loc) 1.3 kB
import React from "react"; import { HttpCallBackWithOptionalDeps } from "./types"; import { AxiosRequestConfig } from "axios"; import MockAdapter from "axios-mock-adapter"; import { FormMethodsRef } from "../form/types"; declare const HttpForm: React.ForwardRefExoticComponent<Partial<import("../form-builder").FormBuilderProps<any>> & Pick<import("../form-builder").FormBuilderProps<any>, "fields"> & { onSaveRequest?: HttpCallBackWithOptionalDeps | undefined; onSaveResponse?: HttpCallBackWithOptionalDeps | undefined; onLoadRequest?: HttpCallBackWithOptionalDeps | undefined; onLoadResponse?: HttpCallBackWithOptionalDeps | undefined; onSaveError?: ((error: any) => void) | undefined; onLoadError?: ((error: any) => void) | undefined; onSaveSuccess?: ((data: any) => void) | undefined; onLoadSuccess?: ((data: any) => void) | undefined; saveRequest: string | AxiosRequestConfig<any>; loadRequest?: string | AxiosRequestConfig<any> | undefined; loadingIndicator?: React.ReactNode; encodingMode?: "JSON" | "MUTIPART" | "AUTO" | undefined; model?: any; submitButton?: React.ReactNode; resetButton?: React.ReactNode; mockResponse?: ((req: MockAdapter) => void) | undefined; } & React.RefAttributes<FormMethodsRef>>; export { HttpForm };