UNPKG

@anushase/json-form-builder

Version:

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

9 lines (8 loc) 554 B
import { FormState, FormField } from "../types"; /** * This function creates a phone input form element with a prefix dropdown if applicable. * @param {FormState} state state of the form containing schema, container, and other properties. * @param {FormField} field field object containing type, id, label, required, and other properties. * @returns {HTMLDivElement} A div element containing the form field with its label, input, and prefix dropdown. */ export declare const createPhoneField: (state: FormState, field: FormField) => HTMLDivElement;