---
title: "GitHub - pomber/react-fit-to-viewport"
url: https://daily.dev/posts/github---pomber-react-fit-to-viewport-xue5gxntx
source_url: https://github.com/pomber/react-fit-to-viewport
type: article
source: "Rodrigo Pombo"
published: 2026-03-31T12:30:02.117Z
updated: 2026-03-31T12:43:04.291Z
tags: ["react", "typescript", "zoom"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - pomber/react-fit-to-viewport

**[Rodrigo Pombo](https://daily.dev/sources/pomb)** · 1 min read · 0 upvotes · 0 comments

## Summary

react-fit-to-viewport is a React component that automatically scales content to fit inside the browser viewport. It supports server-side rendering and accepts props for width, height, minZoom, and maxZoom to control scaling behavior. Install via yarn and wrap any content with the FitToViewport component.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/pomber/react-fit-to-viewport>

---

Tags: [#react](https://daily.dev/tags/react), [#typescript](https://daily.dev/tags/typescript), [#zoom](https://daily.dev/tags/zoom)

[View this post on daily.dev](https://daily.dev/posts/github---pomber-react-fit-to-viewport-xue5gxntx)
