Skip to content

Uvacoder/react-fit-to-viewport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-fit-to-viewport

Automatically scales the content to fit it inside the viewport. It also works with server-side rendering.

$ yarn add react-fit-to-viewport
<FitToViewport width={800} height={600} minZoom={0} maxZoom={1}>
  {stuff}
</FitToViewport>

Packages

No packages published

Languages

  • TypeScript 75.5%
  • HTML 15.8%
  • JavaScript 8.7%