UNPKG

@anushase/json-form-builder

Version:

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

9 lines (8 loc) 491 B
import { FormState, FormField } from "../types"; /** * Creates a password form element. * @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 createPasswordField: (state: FormState, field: FormField) => HTMLDivElement;