useParentElement

grabs the above element of what ever the current element is

Demo

Open console to see parent element

Usage

const const parent: Signal<Element | undefined>parent = useParentElement<Element>(): Signal<Element | undefined>useParentElement()