ctrlplusb/react-sizeme
Make your React Components aware of their width and height! observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3795
- days_rel: n/a
- days_push: 1278
- n_releases_24m: 0
Adoption not part of the score
1961 stars · 92 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small React library that makes components aware of their own rendered width and height, enabling component-level responsive design. It exposes a SizeMe render-prop component and a withSize higher-order component that report element size changes.
Use cases
- make a react component responsive to its own container size
- render different child components based on element width
- get element width and height in react
- component-level element queries in react
- swap layouts depending on available space in react
- measure a react component's size on resize
When to choose
- you need components that adapt to wherever they are rendered, not just the viewport
- you want a tiny, performant size-awareness utility with render prop or HOC APIs
- you need broad browser support and SSR compatibility
When to avoid
- you only need viewport-based responsive design - CSS media queries suffice
- you're starting a new project and prefer actively maintained alternatives like ResizeObserver hooks
- you need container query support natively available in modern CSS
Facets
library · maturity maintenance
ui-components frontend-framework frontend web-development web-design browser react element-queries responsive-design render-prop higher-order-component size-detection nodejs javascript
2 sources
- readme: https://github.com/ctrlplusb/react-sizeme · fetched 2026-08-28 · 60ade33864b5
- registry_npm: https://registry.npmjs.org/react-sizeme · fetched 2026-08-29 · dc1f0f6d280f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ctrlplusb/react-sizeme | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="ctrlplusb/react-sizeme")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem