Skip to content

⬅️ Back to Table of Contents

📄 useStyleTag

📊 Analysis Summary

Metric Count
🔧 Functions 4
📦 Imports 9
📊 Variables & Constants 2
🟢 Vue Composition API 1
📐 Interfaces 2

📚 Table of Contents

🛠️ File Location:

📂 packages/core/useStyleTag/index.ts

📦 Imports

Name Source
MaybeRef vue
ShallowRef vue
ConfigurableDocument ../_configurable
tryOnMounted @vueuse/shared
tryOnScopeDispose @vueuse/shared
shallowReadonly vue
shallowRef vue
watch vue
defaultDocument ../_configurable

Variables & Constants

Name Type Kind Value Exported
_id number let/var 0
_refCount WeakMap<HTMLStyleElement, number> const new WeakMap<HTMLStyleElement, number>()

Vue Composition API

Name Type Reactive Variables Composables
watch watch none none

Functions

useStyleTag(css: MaybeRef<string>, options: UseStyleTagOptions): UseStyleTagReturn

Inject