UNPKG

@anushase/json-form-builder

Version:

A dynamic JSON form builder with multi-language support, validation, and responsive design

10 lines (9 loc) 637 B
import { FormState, FormField } from "../types"; /** * This function creates a simple textbox form element that supports multilingual labels and validation. * It handles multiple languages, required validation, and regex validation. * @param {FormState} state Current form state containing schema, container, and other properties. * @param {FormField} field Form field object containing type, id, label, required, and other properties. * @returns {HTMLDivElement} A div element containing the form field with its label and input. */ export declare const createSimpleTextbox: (state: FormState, field: FormField) => HTMLDivElement;