Skip to content

Active Element

Reactive document.activeElement

🎬 Usage

<script>
    import {active_element} from "sveltecore"

    const el = active_element()
</script>

👩‍💻API

Returns

A subscribable store that contains the current active element.

🧪 Playground


Last update: 2022-11-13