feat: Complete fleet — 94 skills across 10+ domains
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>
This commit is contained in:
60
skills/vueuse-functions/references/useScreenSafeArea.md
Normal file
60
skills/vueuse-functions/references/useScreenSafeArea.md
Normal file
@@ -0,0 +1,60 @@
|
||||
---
|
||||
category: Browser
|
||||
---
|
||||
|
||||
# useScreenSafeArea
|
||||
|
||||
Reactive `env(safe-area-inset-*)`
|
||||
|
||||

|
||||
|
||||
## Usage
|
||||
|
||||
In order to make the page to be fully rendered in the screen, the additional attribute `viewport-fit=cover` within `viewport` meta tag must be set firstly, the viewport meta tag may look like this:
|
||||
|
||||
```html
|
||||
<meta name="viewport" content="initial-scale=1, viewport-fit=cover" />
|
||||
```
|
||||
|
||||
Then we could use `useScreenSafeArea` in the component as shown below:
|
||||
|
||||
```ts
|
||||
import { useScreenSafeArea } from '@vueuse/core'
|
||||
|
||||
const {
|
||||
top,
|
||||
right,
|
||||
bottom,
|
||||
left,
|
||||
} = useScreenSafeArea()
|
||||
```
|
||||
|
||||
For further details, you may refer to this documentation: [Designing Websites for iPhone X](https://webkit.org/blog/7929/designing-websites-for-iphone-x/)
|
||||
|
||||
## Component Usage
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<UseScreenSafeArea top right bottom left>
|
||||
content
|
||||
</UseScreenSafeArea>
|
||||
</template>
|
||||
```
|
||||
|
||||
## Type Declarations
|
||||
|
||||
```ts
|
||||
/**
|
||||
* Reactive `env(safe-area-inset-*)`
|
||||
*
|
||||
* @see https://vueuse.org/useScreenSafeArea
|
||||
*/
|
||||
export declare function useScreenSafeArea(): {
|
||||
top: ShallowRef<string, string>
|
||||
right: ShallowRef<string, string>
|
||||
bottom: ShallowRef<string, string>
|
||||
left: ShallowRef<string, string>
|
||||
update: () => void
|
||||
}
|
||||
export type UseScreenSafeAreaReturn = ReturnType<typeof useScreenSafeArea>
|
||||
```
|
||||
Reference in New Issue
Block a user