import * as React from 'react'; import { FieldValidityData } from '../root/FieldRoot.js'; /** * Used to display a custom message based on the field’s validity. * Requires `children` to be a function that accepts field validity state as an argument. * * Documentation: [Anchor UI Field](https://anchorui.com/react/components/field) */ declare const FieldValidity: React.FC; export interface FieldValidityState extends Omit { validity: FieldValidityData['state']; } declare namespace FieldValidity { interface State { } interface Props { /** * A function that accepts the field validity state as an argument. * * ```jsx * * {(validity) => { * return
...
* }} *
* ``` */ children: (state: FieldValidityState) => React.ReactNode; } } export { FieldValidity };