@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.
17 lines (16 loc) • 900 B
TypeScript
import * as React from 'react';
import type { GenericHTMLProps } from '../../utils/types.js';
export declare function useFieldControlValidation(): {
getValidationProps: (externalProps?: {}) => import("../../utils/types.js").WithBaseUIEvent<any>;
getInputValidationProps: (externalProps?: {}) => import("../../utils/types.js").WithBaseUIEvent<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
inputRef: React.RefObject<HTMLInputElement | null>;
commitValidation: (value: unknown) => Promise<void>;
};
export declare namespace useFieldControlValidation {
interface ReturnValue {
getValidationProps: (props?: GenericHTMLProps) => GenericHTMLProps;
getInputValidationProps: (props?: GenericHTMLProps) => GenericHTMLProps;
inputRef: React.MutableRefObject<any>;
commitValidation: (value: unknown) => void;
}
}