Skip to main content

activeElement

An object holding the currently active element.

Demo

Currently active element: No active element found

Usage

		<script lang="ts">
	import { activeElement } from "runed";
</script>
 
<p>
	Currently active element:
	{activeElement.current?.localName ?? "No active element found"}
</p>