pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
21 lines (20 loc) • 679 B
TypeScript
import React from 'react';
import type { DependentFieldUpdate, Field } from '../form-engine';
interface FormEngineDrawerProps {
title: string;
isOpen: boolean;
showForm?: boolean;
showDrawerButtons?: boolean;
cancelButtonText?: string;
submitButtonText?: string;
marginTop?: string;
children?: React.ReactNode;
fields: Field[];
initialValues?: any;
onSubmit: (data: any) => Promise<void>;
onClose: () => void;
onFieldUpdate?: Record<string, DependentFieldUpdate[]>;
}
declare const FormEngineDrawer: React.FC<FormEngineDrawerProps>;
export default FormEngineDrawer;
export type { FormEngineDrawerProps, DependentFieldUpdate };