Skip to content
r.

nice-modal-react

eBay/nice-modal-react · Public GitHub repository

A modal state manager for React.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

nice-modal-react live demo screenshot
Captured from the live demo · 2026-11-01

About this project

Author-written excerpt from the project README.

A small, zero-dependency utility for managing modals in React. It uses context to persist modal state globally so that you can easily show/hide modals either by the modal component or by id.

You can also see the introduction at eBay tech blog. Also check out another nice utility from us! nice-form-react! 😜

For example, you can use the code below to show a modal anywhere:

Requirements and intended audience

A small, zero-dependency utility for managing modals in React. It uses context to persist modal state globally so that you can easily show/hide modals either by the modal component or by id.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-24. Source: https://github.com/eBay/nice-modal-react/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-10-15. Saved release: 1.2.13 · 2023-10-03. These dates do not guarantee ongoing maintenance.

Technologies
React
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-20. This does not test every feature.

Browse related categories