UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

14 lines 442 B
export declare function useField(params: UseFieldParameters): void; export interface UseFieldParameters { enabled?: boolean; value: unknown; getValue?: (() => unknown) | undefined; id: string | undefined; name?: string | undefined; commit: (value: unknown) => void; /** * A ref to a focusable element that receives focus when the field fails * validation during form submission. */ controlRef: React.RefObject<any>; }