@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
19 lines (18 loc) • 547 B
TypeScript
export interface ErrorMessageProps {
/** The ID of the corresponding input field */
inputId: string;
/** The error message for the corresponding input field */
error: string;
/** The sucess message for the corresponding input field */
success?: string;
/** Validation status */
status?: "error" | "success";
}
declare const ErrorMessage: {
({ inputId, error, success, status }: ErrorMessageProps): any;
defaultProps: {
status: string;
success: string;
};
};
export default ErrorMessage;