📄 useSSRWidth¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 2 |
| 📦 Imports | 5 |
| 📊 Variables & Constants | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/core/useSSRWidth/index.ts
📦 Imports¶
| Name | Source |
|---|---|
App |
vue |
InjectionKey |
vue |
injectLocal |
@vueuse/shared |
provideLocal |
@vueuse/shared |
hasInjectionContext |
vue |
Variables & Constants¶
| Name | Type | Kind | Value | Exported |
|---|---|---|---|---|
ssrWidthSymbol |
InjectionKey<number> |
const | Symbol('vueuse-ssr-width') as InjectionKey<number \| null> |
✗ |
Functions¶
useSSRWidth(): number¶
Returns: number
Calls:
hasInjectionContext (from vue)injectLocal (from @vueuse/shared)
Internal Comments:
Code
provideSSRWidth(width: number | null, app: App<unknown>): void¶
Parameters:
widthnumber | nullappApp<unknown>
Returns: void
Calls:
app.provideprovideLocal (from @vueuse/shared)
Code
Generated by Syntax Scribe