1.1.0 • Published 3 years ago

@ibnlanre/use-viewport-height v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

use-viewport-height

Calculates element's height required to fill the viewport.

Usage

import { useRef } from "react";

function Example() {
    const exampleRef = useRef();
    const height = useViewportHeight(exampleRef);
  
    return (<div ref={ref} style={{ height }} />)
}
1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago