@itwin/core-react
Version:
A react component library of iTwin.js UI general purpose components
17 lines • 1.01 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Base
*/
import * as React from "react";
import { withOnOutsideClick } from "../hocs/withOnOutsideClick.js";
/** Div element with Outside Click behavior
* @public
* @deprecated in 4.12.0. Use props of a basic component, like {@link https://itwinui.bentley.com/docs/popover iTwinUI popover `closeOnOutsideClick`} or {@link useOnOutsideClick} hook.
*/
// eslint-disable-next-line @typescript-eslint/no-deprecated
export const DivWithOutsideClick = withOnOutsideClick((props) => React.createElement("div", { ...props }) // eslint-disable-line @typescript-eslint/no-deprecated
);
//# sourceMappingURL=DivWithOutsideClick.js.map