rfa
Version:
**React Form Architect** is an ultimate solution for creating and rendering forms in React. Its main focus is to provide users with a tool to define, render and share a form in a browser.
7 lines (6 loc) • 541 B
TypeScript
import React from 'react';
import { AttributeSchema } from '../model';
import { Control, useForm } from 'react-hook-form';
export declare const useFieldCreator: () => {
getAttributeEditField: (attribute: AttributeSchema, formContextRegister: Pick<ReturnType<typeof useForm>, 'register'>, formContextControl: Control) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
};