1.1.2 • Published 9 months ago

svelte-outside-click v1.1.2

Weekly downloads
50
License
MIT
Repository
github
Last release
9 months ago

Svelte Outside

Svelte Outside allows you to handle click events that occur outside of an element without having to wrap your elements inside of an component.

Basic Usage

Using Svelte Outside is as simple as adding two lines of code.

<div use:clickOutside={handleClickEvent}>
	<p>Nested</p>
</div>

<script>
import clickOutside from "svelte-outside-click";

function handleClickEvent() {
	// Your code here
}
</script>
1.1.2

9 months ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago