/// export interface FormDynamicProps { /** * Json to frontend */ formJson: FormJson[]; /** * Name the button */ buttonName?: string; /** * Function get form values */ onSubmit: (data: any) => void; } export interface FormJson { /** * Type of input */ type: string; /** * Name of input in form */ name: string; /** * String to see in the input */ placeholder?: string; /** * Label of input */ label: string; /** * value that you need in input */ value: string; /** * Validation of input */ validations?: validationForm[]; /** * Option that select input */ options?: optionsDynamic[]; } export interface validationForm { /** * type of validation */ type: string; /** * Number if type validation need */ value?: number; } export interface optionsDynamic { /** * Id of selection */ id: number; /** * Option of selection */ option: string; } /** * Dynamic form from JSON */ export declare const FormDynamic: ({ formJson, buttonName, onSubmit, }: FormDynamicProps) => JSX.Element; export default FormDynamic;