A React component that automatically scales the content to fit it within the viewport. Works with server-side rendering.
Install & Import:
# NPM $ npm i react-fit-to-viewport --save # Bower $ bower install react-fit-to-viewport --save
Basic Usage:
<FitToViewport width={600} height={450} minZoom={0} maxZoom={1}> {stuff} </FitToViewport>
Preview:
Download Details:
Author: pomber
Live Demo: View The Demo
Download Link: Download The Source Code
Official Website: https://github.com/pomber/react-fit-to-viewport
License: MIT