UNPKG

form-test-victor

Version:

# Performant forms and wizard library for React

22 lines 662 B
import { FieldValue } from '../../shared'; import { FormContextApi } from '../contexts/FormContext'; interface UseHiddenField { name: string; value: FieldValue; setValue: (newValue: FieldValue) => void; } /** * Hook to use in association to HiddenField * @param name Field name * @param form (optional) If not specified, context form is used * @example * ``` * const fooHiddenField = useHiddenField('foo'); * return ( * <HiddenField {...fooHiddenField} /> * ) * ``` */ export declare function useHiddenField(name: string, form?: FormContextApi): UseHiddenField; export {}; //# sourceMappingURL=useHiddenField.d.ts.map