--- category: Elements --- # useParentElement Get parent element of the given element ## Usage When no argument is passed, it will return the parent element of the current component. ```vue ``` It can also accept a `ref` as the first argument. ```vue ``` ## Type Declarations ```ts export declare function useParentElement( element?: MaybeRefOrGetter, ): Readonly> ```