Skip to main content

As we've briefly seen already, you can listen to any event on an element with the on: directive:

<div on:mousemove={handleMousemove}>
	The mouse position is {m.x} x {m.y}
</div>
We stand with Ukraine. Donate → We stand with Ukraine. Petition your leaders. Show your support.