toElement API
API reference for the toElement composable.
Functions
toElement
(target: MaybeElementRef) => ElementResolves a {@link MaybeElementRef} to a DOM Element or undefined. Handles: - `Ref<Element>`, `ShallowRef<HTMLElement>`, getter functions - Vue component instances (extracts `$el`) - Raw DOM elements (pass-through) - null/undefined (returns undefined)