@alifd/next
Version:
A configurable component library for web built on React.
5 lines (4 loc) • 347 B
TypeScript
import { type ReactElement } from 'react';
import { type ScrollToFirstErrorOption } from './types';
export declare function cloneAndAddKey(element: ReactElement): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
export declare function scrollToFirstError({ errorsGroup, options, instance }: ScrollToFirstErrorOption): void;