UNPKG

@10up/block-components

Version:

10up Components built for the WordPress Block Editor.

10 lines 471 B
/** * useOnClickOutside * * Note: This hook is only intended to be used in the WordPress backend/block editor. * * @param {Function} onClickOutside callback that will get invoked when the user clicks outside of the target * @returns {object} ref to the target element */ export declare function useOnClickOutside(onClickOutside: (event: MouseEvent | TouchEvent) => void): import("react").RefCallback<Node | null>; //# sourceMappingURL=use-on-click-outside.d.ts.map