UNPKG

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.

15 lines (14 loc) 596 B
import React from 'react'; import type { FieldValues } from 'react-hook-form'; import type { ThemeOptions } from '@material-ui/core'; import type { ExportedSchemaType } from '../hooks/use-data-exporter'; import type { FormSchemaType } from '../store/store'; declare type FormRendererProps = { data: FormSchemaType | ExportedSchemaType; onSubmit: (data: FieldValues) => void; theme?: ThemeOptions; fields?: React.FC<any>[]; children?: never; }; export declare const FormRenderer: ({ data, onSubmit, theme, fields, }: FormRendererProps) => JSX.Element; export {};