1.1.0 • Published 1 year ago

@ibnlanre/use-viewport-height v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago