@anushase/json-form-builder
Version:
A dynamic JSON form builder with multi-language support, validation, and responsive design
9 lines (8 loc) • 500 B
TypeScript
import { FormField, FormState } from "../types";
/**
* Creates a checkbox 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 checkbox input.
*/
export declare const createCheckboxField: (state: FormState, field: FormField) => HTMLDivElement;