# nice-modal-react

A modal state manager for React.

Canonical page: https://www.reposhelf.co.uk/projects/github/ebay/nice-modal-react.html

- Project ID: eBay/nice-modal-react
- Source: GitHub
- Original project: https://github.com/eBay/nice-modal-react
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: React
- Licence: MIT
- Repository availability checked: 2026-11-03T18:37:02.653Z
- Demo page loaded: 2026-11-20T19:21:09.717Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 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:

- Zero dependencies and small: 2kb after gzip.
- Uncontrolled. You can close the modal itself within the modal component.
- Decoupled. You don't have to import a modal component to use it. Modals can be managed by id.
- Your modal component code is not executed when it's invisible.
- Doesn't break the transitions when showing/hiding a modal.

## Author-documented requirements and 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.

Source: https://github.com/eBay/nice-modal-react/blob/main/README.md

Extraction checked: 2026-10-24T15:52:30.331Z

Last recorded source update: 2026-10-15T04:33:32.000Z

Saved release: 1.2.13 — 2023-10-03T09:23:20.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=eBay%2Fnice-modal-react). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
