Pulled ALL skills from 15 source repositories: - anthropics/skills: 16 (docs, design, MCP, testing) - obra/superpowers: 14 (TDD, debugging, agents, planning) - coreyhaines31/marketingskills: 25 (marketing, CRO, SEO, growth) - better-auth/skills: 5 (auth patterns) - vercel-labs/agent-skills: 5 (React, design, Vercel) - antfu/skills: 16 (Vue, Vite, Vitest, pnpm, Turborepo) - Plus 13 individual skills from various repos Mosaic Stack is not limited to coding — the Orchestrator and subagents serve coding, business, design, marketing, writing, logistics, analysis, and more. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
989 B
989 B
category
| 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.
<script setup lang="ts">
import { useParentElement } from '@vueuse/core'
const parentEl = useParentElement()
onMounted(() => {
console.log(parentEl.value)
})
</script>
It can also accept a ref as the first argument.
<script setup lang="ts">
import { useParentElement } from '@vueuse/core'
import { useTemplateRef } from 'vue'
const tooltip = useTemplateRef('tooltip')
const tooltipWrapper = useParentElement(tooltip)
onMounted(() => {
console.log(tooltipWrapper.value)
})
</script>
<template>
<div>
<p ref="tooltip" />
</div>
</template>
Type Declarations
export declare function useParentElement(
element?: MaybeRefOrGetter<HTMLElement | SVGElement | null | undefined>,
): Readonly<ShallowRef<HTMLElement | SVGElement | null | undefined>>