UNPKG

concis

Version:

Concis Component library for PC

25 lines (24 loc) 682 B
import React from 'react'; import FormItem from './form-item'; import { FormProps } from './interface'; export declare const ctx: React.Context<any>; export interface FormComponent { Item: typeof FormItem; } export interface FromRefFunctions { formRef: string; onSubmit: Function; resetFields: Function; validateFields: Function; useFormContext: Function; } export declare type fieldListType = { rules?: Array<any>; val?: string; }; declare const Form: { <T>(props: FormProps<T>): JSX.Element; Item: (props: import("./interface").FormItemProps) => JSX.Element; useForm(): FromRefFunctions; }; export default Form;