UNPKG

@payfit/unity-components

Version:

13 lines (12 loc) • 590 B
import { TextProps } from '../../../../../core/components/text/Text.js'; export type FormFeedbackTextProps = Omit<TextProps, 'variant' | 'color' | 'className'>; /** * `FormFeedbackText` renders the first validation message for the * current form field when the field is invalid * * Behavior: * - Returns `null` when the field is valid or has no errors. * - When invalid, renders the first error message. */ declare const FormFeedbackText: import('react').ForwardRefExoticComponent<FormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>; export { FormFeedbackText };