z-react-dynamic-form
Version:
A dynamic form builder for React applications with various input types and validation
24 lines (23 loc) • 597 B
TypeScript
import React from "react";
type CheckBoxItemProps = {
value: string;
label: string;
disabled?: boolean;
};
type CheckBoxControllerProps = {
name: string;
label?: string;
items?: CheckBoxItemProps[];
required?: boolean;
disabled?: boolean;
helperText?: string;
defaultValue?: boolean | string[];
baseClassName?: string;
checkBoxController?: any;
[key: string]: any;
};
/**
* CheckBoxController - Handles single and group checkbox inputs
*/
declare const CheckBoxController: React.FC<CheckBoxControllerProps>;
export default CheckBoxController;