react-forminate
Version:
React.js + Typescript package that creates dynamic UI forms based on the JSON schema
16 lines (15 loc) • 636 B
TypeScript
import { FormFieldType } from '../../types';
import { ComponentType, FC, ReactNode } from 'react';
export declare const registerField: (type: string, component: ComponentType<any>) => void;
export declare const unregisterField: (type: string) => void;
type ExtendedFormField = FormFieldType & {
showSkeletonLoading?: boolean;
skeleton?: ReactNode;
onLoadComplete?: (fieldId: string) => void;
};
/**
* DynamicFormField component that renders form fields based on their type
* with optimized rendering and lazy loading capabilities
*/
declare const DynamicFormField: FC<ExtendedFormField>;
export default DynamicFormField;