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.

12 lines (11 loc) 462 B
import * as React from 'react'; export declare function useFieldError(params: useFieldError.Parameters): { getErrorProps: (externalProps?: {}) => import("../../utils/types.js").WithBaseUIEvent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>; }; export declare namespace useFieldError { interface Parameters { id: string | undefined; rendered: boolean; formError: string | string[] | null; } }