envoc-form
Version:
Envoc form components
8 lines (7 loc) • 345 B
TypeScript
import { ServerErrorContextProps } from './ServerErrorContext';
export interface FocusErrorProps {
/** Validation errors that have been received from the server. */
serverErrors: ServerErrorContextProps;
}
/** Function to scroll to the field that has an error. */
export default function FocusError(props: FocusErrorProps): null;