🌐
GitHub
github.com › eBay › nice-modal-react
GitHub - eBay/nice-modal-react: A modal state manager for React. · GitHub
This is a small, zero dependency utility to manage modals in a natural way for React. It uses context to persist state of modals globally so that you can show/hide a modal easily either by the modal component or id.
Starred by 2.3K users
Forked by 127 users
Languages   TypeScript 57.7% | JavaScript 42.3%
Discussions

GitHub - eBay/nice-modal-react: A nice modal manager for React.
I think portals are a better solution for modals. This looks very un-reacty. More on reddit.com
🌐 r/reactjs
9
93
October 9, 2021
A nice modal/dialog/popup manager for React
Using it in production on an enterprise app and so far no issues. Would recommend. More on reddit.com
🌐 r/reactjs
9
79
April 27, 2022
What is the best way to implement a modal in React?
No libraries. Look into Portals: https://reactjs.org/docs/portals.html Render your component that takes in any child in a portal and customize it with CSS and an active state. More on reddit.com
🌐 r/reactjs
21
21
August 25, 2022
What is best way to create popup modal in react js
Save yourself the headache, https://headlessui.com/react/dialog More on reddit.com
🌐 r/reactjs
22
44
March 12, 2023
🌐
LogRocket
blog.logrocket.com › home › improve modal management in react with nice-modal-react
Improve modal management in React with nice-modal-react - LogRocket Blog
June 4, 2024 - The nice-modal-react package is a zero-dependency utility written in TypeScript and uses context to control the state of the modals throughout the entire app.
🌐
Reddit
reddit.com › r/reactjs › github - ebay/nice-modal-react: a nice modal manager for react.
r/reactjs on Reddit: GitHub - eBay/nice-modal-react: A nice modal manager for React.
October 9, 2021 - But so far I've only used the method in Declare your modal instead of register to create modals because the other methods mentioned in the document do not close modals automatically when routes change. ... I've built a complete Window Management library for React!
🌐
npm
npmjs.com › package › @ebay › nice-modal-react
@ebay/nice-modal-react - npm
October 3, 2023 - This is a small, zero dependency utility to manage modals in a natural way for React. It uses context to persist state of modals globally so that you can show/hide a modal easily either by the modal component or id..
      » npm install @ebay/nice-modal-react
    
Published   Oct 03, 2023
Version   1.2.13
🌐
CodeSandbox
codesandbox.io › s › nice-modal-react-182gc
nice-modal-react - CodeSandbox
December 13, 2021 - nice-modal-react by madzadev using @ebay/nice-modal-react, react, react-dom, react-scripts
Published   Dec 02, 2021
Author   madzadev
🌐
GitHub
github.com › eBay › nice-modal-react › issues
Issues · eBay/nice-modal-react
A modal state manager for React. Contribute to eBay/nice-modal-react development by creating an account on GitHub.
Author   eBay
🌐
Medium
medium.com › ebaytech › rethink-modals-management-in-react-cf3b6804223d
Rethink Modals Management in React | by eBay TechBlog | eBayTech | Medium
November 19, 2021 - In this article we introduced a new approach to managing dialogs/popups/drawers based on the essential of the modal UI pattern. The solution is already open sourced at: github.com/eBay/nice-modal-react.
Find elsewhere
🌐
CodeSandbox
codesandbox.io › examples › package › @ebay › nice-modal-react
@ebay/nice-modal-react examples - CodeSandbox
AboutThis is a small, zero dependency utility to manage modals in a natural way for React.
🌐
GitHub
github.com › eBay › nice-modal-react › blob › main › src › index.tsx
nice-modal-react/src/index.tsx at main · eBay/nice-modal-react
A modal state manager for React. Contribute to eBay/nice-modal-react development by creating an account on GitHub.
Author   eBay
🌐
GitHub
github.com › eBay › nice-modal-react › blob › main › README.md
nice-modal-react/README.md at main · eBay/nice-modal-react
This is a small, zero dependency utility to manage modals in a natural way for React. It uses context to persist state of modals globally so that you can show/hide a modal easily either by the modal component or id.
Author   eBay
🌐
React Suite
rsuitejs.com › home › components › modal integrations
Modal Integrations 🧩 - React Suite
import { Modal, Button } from 'rsuite'; import NiceModal, { useModal } from '@ebay/nice-modal-react'; export const MyModal = NiceModal.create(({ id, name }) => { const modal = useModal(); return ( <Modal open={modal.visible} onClose={modal.hide} onExited={modal.remove} backdrop="static"> <Modal.Header> <Modal.Title>Hello React Suite</Modal.Title> </Modal.Header> <Modal.Body> Greetings: {id}, {name}! </Modal.Body> </Modal> ); });
🌐
CodeSolution
codesolution.co.in › detail › post › create-react-app-with-nice-modal-react-module-to-improve-modal-management
Create React app with nice-modal-react module to Improve modal management
The nice-modal-react package is a zero-dependency utility written in TypeScript and uses context to control the state of the modals throughout the entire app. The main advantage of the utility is promise-based modal handling.
🌐
Reddit
reddit.com › r/reactjs › a nice modal/dialog/popup manager for react
r/reactjs on Reddit: A nice modal/dialog/popup manager for React
April 27, 2022 - Join the Reactiflux Discord (reactiflux.com) for additional React discussion and help. ... Using it in production on an enterprise app and so far no issues. Would recommend. ... Every modal manager i ended up writing for various company / project did look similar. It's clear to me that it's a great and natural way to handle modal. Also easier to have a queue of modals. I didn't try it but so far it looks good. Nice share.
🌐
Made with React.js
madewithreactjs.com › nice-modal
Nice Modal - Modal State Manager - Made with React.js
October 20, 2023 - It uses context to persist state of modals globally so that you can show/hide a modal easily either by the modal component or id." ... We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit. ... Placid is a creative automation API & toolkit that lets you generate consistent visuals at scale Learn more Resolve React performance bottlenecks and errors faster with actionable insights from Sentry Learn more
🌐
EBay
opensource.ebay.com › nice-modal-react › api
@ebay/nice-modal-react
Provider: React.FC<Record<string, unknown>> = ... ... default: { ModalDef: FC<Record<string, unknown>>; ModalHolder: FC<Record<string, unknown>>; NiceModalContext: Context<NiceModalStore>; Provider: FC<Record<string, unknown>>; antdDrawer: (modal: NiceModalHandler<Record<string, unknown>>) => { visible: boolean; afterVisibleChange: any; onClose: any }; antdModal: (modal: NiceModalHandler<Record<string, unknown>>) => { visible: boolean; afterClose: any; onCancel: any; onOk: any }; bootstrapDialog: (modal: NiceModalHandler<Record<string, unknown>>) => { show: boolean; onExited: any; onHide: any
🌐
GitHub
github.com › worldzhao › vue-nice-modal
GitHub - worldzhao/vue-nice-modal: Vue version of @ebay/nice-modal-react · GitHub
Vue version of @ebay/nice-modal-react. Contribute to worldzhao/vue-nice-modal development by creating an account on GitHub.
Starred by 57 users
Forked by 5 users
Languages   JavaScript 99.4% | Shell 0.6%
🌐
DEV Community
dev.to › logrocket › improve-modal-management-in-react-with-nice-modal-react-b3m
Improve modal management in React with nice-modal-react - DEV Community
January 14, 2022 - The nice-modal-react package is a zero-dependency utility written in TypeScript and uses context to control the state of the modals throughout the entire app.
🌐
eBay Inc.
tech.ebayinc.com › engineering › rethink-modals-management-in-react
Rethink Modals Management in React - eBay Tech Blog
March 18, 2025 - In this article we introduced a new approach to managing dialogs/popups/drawers based on the essential of the modal UI pattern. The solution is already open sourced at: github.com/eBay/nice-modal-react.