1.1.0 • Published 2 years ago

@ibnlanre/use-viewport-height v1.1.0

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

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago