This repository has been archived on 2021-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
graf-uloh/frontend/src/Hoverable.svelte

15 lines
222 B
Svelte

<script>
let hovering;
function enter() {
hovering = true;
}
function leave() {
hovering = false;
}
</script>
<g on:mouseenter={enter} on:mouseleave={leave}>
<slot hovering={hovering}></slot>
</g>