# mvasin/react-div-100vh

A workaround for the '100vh' issue in mobile browsers

Repository: https://github.com/mvasin/react-div-100vh
Canonical: https://ross.abutalabs.com/products/react-div-100vh
Homepage: https://react-div-100vh.vercel.app
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, mobile-web
Last push: 2023-01-07T21:26:11+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3020, "days_push": 1334, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1061, forks 63 (observed 2026-08-28T04:03:25.885954+00:00)

## What it is
A React component and hook that work around the '100vh' viewport height issue in mobile browsers like iOS Safari. It provides the real visible viewport height so full-screen layouts aren't cropped by browser chrome.

## Use cases
- fix 100vh cropping on mobile safari
- make full-screen splash page in react that fits mobile viewport
- keep call-to-action button visible above mobile browser toolbar
- get real viewport height in pixels in react
- app-like full height layout on mobile web

## When to choose
- building React apps where full-height layouts get cropped by mobile browser chrome
- you need a simple drop-in component or hook for accurate viewport height

## When to avoid
- desktop-only web apps where 100vh works fine
- non-React projects (though measureHeight is usable standalone)
- projects already using modern CSS solutions like dvh units

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, frontend-framework
- domain: web-development, frontend, mobile-development
- platform: browser
- tags: react, react-hook, viewport-height, mobile-safari, 100vh, css-workaround, nodejs, javascript

## Member repositories
- mvasin/react-div-100vh (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.885954+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:56:51.746620+00:00, confidence not recorded.
  - readme: https://github.com/mvasin/react-div-100vh (fetched 2026-08-28T04:03:25.885954+00:00, sha 0ac9f204ed32)
  - homepage: https://react-div-100vh.vercel.app (fetched 2026-08-29T12:58:37.177346+00:00, sha 091b1d58e089)
  - registry_npm: https://registry.npmjs.org/react-div-100vh (fetched 2026-08-29T12:58:37.186267+00:00, sha a7c146e06d2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
