Active Element

A reactive document.activeElement.

# Anatomy

The activeElement is a readable store that returns the HTML element within the DOM that currently has focus.

<script>
	import { activeElement } from '@grail-ui/svelte';

	$: console.log($activeElement);
</script>