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%
EBay
opensource.ebay.com › nice-modal-react
Nice Modal
Examples for @ebay/nice-modal-react
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
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
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
What is best way to create popup modal in react js
Save yourself the headache, https://headlessui.com/react/dialog More on reddit.com
Videos
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
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
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
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> ); });
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%
EBay
opensource.ebay.com › nice-modal-react › api › interfaces › NiceModalHandler.html
NiceModalHandler | @ebay/nice-modal-react
Remove the modal component from React component tree.