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.
20 lines (19 loc) • 557 B
TypeScript
import type { FormSchemaType } from '../store/store';
export declare type ExportedSchemaType = {
grouping: FormSchemaType['grouping'];
elements: (Omit<FormSchemaType['elements'][0], 'render'> & {
render: string;
})[];
};
export declare const useDataExporter: () => {
handlers: {
saveAsJSON: () => void;
importData: (jsonData: object) => void;
copyToClipboard: () => Promise<void>;
};
state: {
copied: boolean;
exported: boolean;
imported: boolean;
};
};