useActiveElement

reactive document.activeElement

Demo

Nothing is focused.

Usage

const const node: Signal<Element | null>node = function useActiveElement(options?: ActiveElementOptions): Signal<Element | null>useActiveElement()

type 
type ActiveElementOptions = {
    deep?: boolean;
}
ActiveElementOptions
= {
deep?: boolean | undefineddeep?: boolean }