UNPKG

form-test-victor

Version:

# Performant forms and wizard library for React

24 lines 595 B
import { ReactNode } from 'react'; import { FormContextApi } from './contexts/FormContext'; interface FormProps { children: ReactNode; form: FormContextApi; } /** * Context to handle Form. Similar to <form> but using React Context * @param children - Children * @param form - Form from useForm hook * @example * ``` * const form = useForm(): * * return ( * <Form form={form}> * <TextField name="foo" /> * </Form> * ) * ``` */ export declare function Form({ children, form }: FormProps): JSX.Element; export {}; //# sourceMappingURL=Form.d.ts.map