@progress/kendo-react-common
Version:
React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package
21 lines (20 loc) • 1.04 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { AsyncFocusBlurArgs } from '../hooks/useAsyncFocusBlur.js';
import * as React from 'react';
/**
* An utility High-order Component for asynchronous focus/blur handling.
*
* By default, the `onFocus` and `onBlur` callbacks are called every time a child components receives/loses focus.
* Use this utility HOC for scenarios where you need to know if the parent has received focus for the first time, or completely lost focus.
*
* @returns
*/
export declare const AsyncFocusBlur: ({ children, onFocus, onBlur, onSyncFocus, onSyncBlur }: AsyncFocusBlurArgs<any> & {
children: (args: AsyncFocusBlurArgs<any>) => React.ReactNode;
}) => React.JSX.Element;