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>	
MIT

© 2024 Svecosystem Team