useViewportHeight

See source code

Deprecated: Read window.visualViewport directly: this flattens the visible rectangle to a single scalar, and keeping UI clear of the software keyboard usually needs the other edges too. Unused since v3.14; will be removed in a future release.

The height of the visible viewport, including the visual viewport's own offset.

function useViewportHeight(): number;
Prev
useUniqueSafeId
Next
createMermaidDiagram