@tempots/ui
Version:
Provides a higher level of renderables to help fast development with Tempo.
9 lines (8 loc) • 479 B
TypeScript
/**
* Executes a callback function when a click event occurs outside of the parent element.
*
* @param handler - The callback function to be executed when a click event occurs outside of the parent element.
* @returns A renderable function that takes a DOMContext and returns a function that takes a boolean indicating whether to remove the tree.
* @public
*/
export declare function OnClickOutside(handler: (event: MouseEvent) => void): import('@tempots/dom').Renderable;