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