form-preview-df
Version:
Resusable Form Preview Components
22 lines • 796 B
TypeScript
import React from 'react';
import { ICheckboxComponent, IFormControlChange, IFormValidationErrors } from '../df-form-preview-interfaces';
interface DfFormCheckboxProps {
id: string;
properties: ICheckboxComponent;
validationErrors?: IFormValidationErrors;
formValue?: string[];
readonly?: boolean;
disabled?: boolean;
touchedFields?: Record<string, boolean>;
formSubmitted?: boolean;
mode?: 'edit' | 'preview' | 'test';
onValueChange?: (change: IFormControlChange) => void;
onBlur?: () => void;
onFocus?: () => void;
className?: string;
hideLabel?: boolean;
showCommentsInPreview?: boolean;
}
export declare const DfFormCheckbox: React.FC<DfFormCheckboxProps>;
export default DfFormCheckbox;
//# sourceMappingURL=DfFormCheckbox.d.ts.map