@libromi/app-builder-react
Version:
React component for App Builder forms
37 lines (36 loc) • 1.08 kB
TypeScript
import React from 'react';
export interface AppEmbedProps {
appId: string;
apiKey: string;
height?: string | number;
width?: string | number;
theme?: 'light' | 'dark' | string;
onSubmit?: (data: any) => void;
onValidate?: (data: any) => boolean;
className?: string;
style?: React.CSSProperties;
baseUrl?: string;
dataSources?: Record<string, any>;
}
declare global {
interface Window {
DynamicFormsSDK: {
init: (config: {
baseUrl: string;
apiKey: string;
}) => void;
render: (containerId: string, options: {
appId: string;
schema?: any;
height?: number | string;
width?: number | string;
theme?: string;
dataSources?: Record<string, any>;
onSubmit?: (data: any) => void;
onValidate?: (data: any) => boolean;
}) => any;
};
}
}
export declare const AppEmbed: React.FC<AppEmbedProps>;
export default AppEmbed;