toElement API
API reference for the toElement composable.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| To Element | Transformers |
| To Array | Transformers |
| To Reactive | Transformers |
Functions
toElement
(target: MaybeElementRef) => Element | undefinedResolves 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)