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) 492 B
import React from "react"; type Option = { label: string; value: string; }; type RadioFieldProps = { name: string; label: string; options: Option[]; fieldClass?: string; labelClass?: string; optionClass?: string; optionsClass?: string; }; type RadioFieldRef = { reset: () => void; getValue: () => string; }; declare const RadioField: React.ForwardRefExoticComponent<RadioFieldProps & React.RefAttributes<RadioFieldRef>>; export default RadioField;