Skip to content
JS
Package

react-container-dimensions

Wrapper component that detects element resize and passes new dimensions down the tree. Based on [element-resize-detector](https://github.com/wnr/element-resize-detector)

v1.4.1, 14 Aug 2018MITCommonJSTypes: NoneReact
$ npm install react-container-dimensions

Key numbers

As of 25 Sept 2026
Weekly downloads
26k
-13% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
8 years ago
v1.4.1
GitHub stars
232
28 forks
Open issues / PRs
14 / 20
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30k40kSept 2025Mar 2026Sept 2026High 40k (7 Apr 2026)Low 7k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

26,027 downloads last week, 106,635 in the last month. The 12-month change of -13% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.4.1, 14 Aug 20188 years ago
First published
-
Last push to GitHub
11 Jan 20212,082 days before the snapshot
Repository archived
No
Open issues
14
Open pull requests
20
Commits, last 52 weeks
0
Dependents on npm
103

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
13 kB
Dependencies (3)
invariantprop-typeselement-resize-detector
Peer dependencies (2)
reactreact-dom
npm install react-container-dimensions
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-container-dimensions@1.4.1/
  • unpkghttps://unpkg.com/react-container-dimensions@1.4.1/
  • esm.shhttps://esm.sh/react-container-dimensions@1.4.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.