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.

15 lines (14 loc) 650 B
import * as React from 'react'; export declare function useFieldControl(params: useFieldControl.Parameters): { getControlProps: (externalProps?: {}) => import("../../utils/types.js").WithBaseUIEvent<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>; }; export declare namespace useFieldControl { interface Parameters { id?: string; name?: string; value?: string | number | readonly string[]; defaultValue?: string | number | readonly string[]; onValueChange?: (value: string | number | readonly string[], event: Event) => void; disabled?: boolean; } }