@payfit/unity-components
Version:
13 lines (12 loc) • 614 B
TypeScript
import { TextProps } from '../../text/Text.js';
export type TanstackFormFeedbackTextProps = Omit<TextProps, 'variant' | 'color' | 'className'>;
/**
* `TanstackFormFeedbackText` renders the first validation message for the
* current TanStack 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 TanstackFormFeedbackText: import('react').ForwardRefExoticComponent<TanstackFormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>;
export { TanstackFormFeedbackText };