--- id: useField title: useField --- ### `UseField` A type representing a hook for using a field in a form with the given form data type. ```tsx export type UseField = >( opts?: { name: TField } & FieldOptions< DeepValue, TFormData >, ) => FieldApi, TFormData> ``` - A function that takes an optional object with a `name` property and field options, and returns a `FieldApi` instance for the specified field. ### `useField` ```tsx export function useField( opts: FieldOptions, ): FieldApi ``` A hook for managing a field in a form. - `opts: FieldOptions` - An object with field options. #### Returns - `FieldApi` - `FieldApi` instance for the specified field. ### `createUseField` ```tsx export function createUseField( formApi: FormApi, ): UseField ``` A function that creates a `UseField` hook bound to the given `formApi`.