@preboot.io/preboot-ui-community
Version:
A community-driven React component library to accelerate building modern SaaS applications, designed to work with PreBoot.io backend.
14 lines (13 loc) • 512 B
TypeScript
import { UseFormReturnType } from '@mantine/form';
interface BaseFormProps<T> {
form: UseFormReturnType<T>;
onSubmit?: (values: T) => Promise<void>;
onCancel?: () => void;
loading?: boolean;
submitLabel?: string;
cancelLabel?: string;
children: React.ReactNode;
mode?: 'edit' | 'readonly';
}
export declare function BaseForm<T>({ form, onSubmit, onCancel, loading, submitLabel, cancelLabel, children, mode }: BaseFormProps<T>): import("react/jsx-runtime").JSX.Element;
export {};