souporserious/react-measure
📏 Compute measurements of a React component. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4005
- days_rel: n/a
- days_push: 2183
- n_releases_24m: 0
Adoption not part of the score
1941 stars · 89 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A React library that computes measurements (client, offset, scroll, bounds, margin rects) of wrapped components using ResizeObserver. It exposes a Measure component and hook-style render props to react to element size changes.
Use cases
- measure a react component's width and height
- detect when an element resizes in react
- get bounding rect of a dom element in react
- build container-query-like responsive components
- animate elements based on their measured size
When to choose
- you need element dimensions or resize callbacks in a React app
- you want a small utility wrapping ResizeObserver with a polyfill
When to avoid
- you're not using React
- you need actively maintained tooling - last release was 2020
- modern CSS container queries can solve your layout need without JS
Facets
library · maturity maintenance
ui-components developer-tools frontend web-development browser react resize-observer element-measurement container-queries dimensions nodejs javascript
3 sources
- readme: https://github.com/souporserious/react-measure · fetched 2026-08-28 · f085e3a677f9
- homepage: https://souporserious.github.io/react-measure/ · fetched 2026-08-29 · aaf3457ac1a8
- registry_npm: https://registry.npmjs.org/react-measure · fetched 2026-08-29 · 4509664e4d4d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| souporserious/react-measure | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="souporserious/react-measure")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem