Home > @svelte-put/clickoutside > ClickOutsideAttributes
Additional attributes extended from svelte-put/clickoutside
Signature:
export interface ClickOutsideAttributes
The ambient types for these extended attributes should be available automatically whenever svelte-put/clickoutside
is imported.
<script lang="ts">
import { clickoutside } from '@svelte-put/clickoutside';
</script>
<!-- on:clickoutside should be typed -->
<div use:clickoutside on:clickoutside />
Property | Modifiers | Type | Description |
---|---|---|---|
"on:clickoutside"? | (event: CustomEvent<MouseEvent>) => void | (Optional) |