---
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
```
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
content
```
## Type Declarations
```ts
/**
* Reactive `env(safe-area-inset-*)`
*
* @see https://vueuse.org/useScreenSafeArea
*/
export declare function useScreenSafeArea(): {
top: ShallowRef
right: ShallowRef
bottom: ShallowRef
left: ShallowRef
update: () => void
}
export type UseScreenSafeAreaReturn = ReturnType
```