eBay/nice-modal-react
A modal state manager for React. observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 97
- 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: 1835
- days_rel: n/a
- days_push: 22
- n_releases_24m: 0
Adoption not part of the score
2296 stars · 127 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small, zero-dependency React utility for managing modal state globally via context, allowing modals to be shown or hidden by component reference or registered id. It is not a modal component itself but works with any UI library's modal/dialog implementation.
Use cases
- show modals anywhere in a react app without prop drilling
- manage modal visibility by id instead of importing components
- get promise-based results when a modal task completes
- avoid remounting modals and breaking css transitions
- integrate modal state management with material ui or ant design
- keep modal component code unexecuted until the modal is shown
When to choose
- you use react and juggle many modals across a large component tree
- you want promise-based interaction with modal results
- you want a tiny (~2kb) zero-dependency modal state solution
- you want modals decoupled from their call sites via string ids
When to avoid
- you need an actual modal/dialog UI component rather than state management
- your app uses vue, svelte, or another non-react framework
- you already use a UI library whose modal API meets your needs
- you need complex workflow or wizard orchestration beyond simple show/hide
Facets
library · maturity stable
state-management ui-components frontend-framework web-development frontend developer-tools cross-platform react modal modals promise-based zero-dependency typescript web-server nodejs
2 sources
- readme: https://github.com/eBay/nice-modal-react · fetched 2026-08-28 · cb298ba50d9b
- homepage: https://ebay.github.io/nice-modal-react · fetched 2026-08-29 · be0ddd4810b9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| eBay/nice-modal-react | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="eBay/nice-modal-react")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem