UNPKG

react-hybrid-form

Version:

A super simple, straightforward and powerful hybrid form library which combines the benefits of both controlled or uncontrolled form.

21 lines (20 loc) 512 B
import React from "react"; type Option = { label: string; value: string; }; type CheckBoxFieldProps = { name: string; label: string; options: Option[]; fieldClass?: string; labelClass?: string; optionsClass?: string; optionClass?: string; }; type CheckBoxFieldRef = { reset: () => void; getValue: () => string[]; }; declare const CheckBoxField: React.ForwardRefExoticComponent<CheckBoxFieldProps & React.RefAttributes<CheckBoxFieldRef>>; export default CheckBoxField;