formulaire-dynamique
Version:
Package React pour formulaires dynamiques avec validation et tous types de champs
25 lines • 1.07 kB
TypeScript
export default DynamicForm;
declare function DynamicForm({ config, onSubmit, customValidation, className }: {
config: any;
onSubmit: any;
customValidation?: {} | undefined;
className: any;
}): import("react/jsx-runtime").JSX.Element;
declare namespace DynamicForm {
namespace propTypes {
let config: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
fields: PropTypes.Validator<(object | null | undefined)[]>;
validateOnChange: PropTypes.Requireable<boolean>;
validateOnBlur: PropTypes.Requireable<boolean>;
disableSubmitOnError: PropTypes.Requireable<boolean>;
submitButton: PropTypes.Requireable<PropTypes.InferProps<{
text: PropTypes.Requireable<string>;
}>>;
}>>>;
let onSubmit: PropTypes.Validator<(...args: any[]) => any>;
let customValidation: PropTypes.Requireable<object>;
let className: PropTypes.Requireable<string>;
}
}
import PropTypes from 'prop-types';
//# sourceMappingURL=DynamicForm.d.ts.map