UNPKG

df-forms-preview-pack

Version:

A comprehensive React form preview component library with form controls, validation, conditional logic, and responsive design

30 lines 1.2 kB
import React from 'react'; import { ISectionComponent, FormComponentType, IFormControlChange } from '../df-form-preview-interfaces'; interface DfFormSectionProps { id: string; properties: ISectionComponent; validationErrors?: Record<string, any>; formValue?: any; formData?: Record<string, any>; readonly?: boolean; disabled?: boolean; touchedFields?: Record<string, boolean>; formSubmitted?: boolean; mode?: 'edit' | 'preview' | 'test'; onValueChange?: (change: IFormControlChange) => void; onBlur?: () => void; onFocus?: () => void; onSelect?: () => void; isSelected?: boolean; className?: string; onSectionSelect?: (section: ISectionComponent) => void; onSectionDelete?: (sectionId: string) => void; onChildrenChange?: (children: FormComponentType[]) => void; onChildSelect?: (child: FormComponentType) => void; onChildDelete?: (childId: string) => void; selectedChild?: FormComponentType | null; renderFormComponent?: (field: FormComponentType) => React.ReactNode; } export declare const DfFormSection: React.FC<DfFormSectionProps>; export default DfFormSection; //# sourceMappingURL=df-form-section.d.ts.map