svelte-outclick

A Svelte component that allows you to listen to the clicks that happen outside of an element.

on-click-outside-web-component

Identifies a click outside of your component. Good for pop-overs, modals, and tooltips.