useActiveElement
A function that returns the currently active element.
Demo
Currently active element: No active element found
Usage
<script lang="ts">
import { useActiveElement } from "runed";
const activeElement = useActiveElement();
</script>
<p>
Currently active element:
{activeElement.value?.localName ?? "No active element found"}
</p>