Restructure components
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<script>
|
||||
let hovering;
|
||||
|
||||
function enter() {
|
||||
hovering = true;
|
||||
}
|
||||
|
||||
function leave() {
|
||||
hovering = false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<div on:mouseenter={enter} on:mouseleave={leave}>
|
||||
<slot></slot>
|
||||
</div>
|
||||
Reference in New Issue
Block a user