{"repo":"hiradary/reoverlay","free":true,"listed":false,"github":"https://github.com/hiradary/reoverlay","clone":"git clone https://github.com/hiradary/reoverlay.git","description":"The missing solution for managing modals in React.","language":"TypeScript","stars":157,"topics":["modal","overlay","react","react-modal","react-overlay","reoverlay"],"license":"MIT","category":"ui-components","readme_excerpt":"Reoverlay A tiny, typed modal manager for React. Reoverlay gives you one top-level ModalContainer and a small imperative API for opening, stacking, and closing modals from anywhere in your app. Install Quick Start Mount ModalContainer once near the root of your app. Create a modal. ModalWrapper is optional, but it provides the default backdrop, animations, outside-click close behavior, and Escape close behavior. Open the modal directly. Named Modals You can configure modal names once and open them later by string. This is useful for app-wide modals, interceptors, and places where importing the modal component would be awkward. API Reoverlay.config(configData) Registers named modals. Names must be unique within a single config call. Reoverlay.showModal(modal, props?) Shows a modal. modal can be a configured string name, a React component, or a React element. props are passed to the modal when it renders. Reoverlay.hideModal(modalName?) Hides a modal. When no name is provided, the last visible modal is hidden. When a name is provided, that configured modal is hidden. Reoverlay.hideAll() Closes every active modal. ModalWrapper ModalWrapper is a small default shell. You can skip it and render your own modal UI if you only want Reoverlay's state orchestration. Prop Type Default --------------------------- ------------------------------------------------------------------------------------------------------------- ----------------------------- animation 'fade' \\ 'zoom' \\ 'flip' \\ '","default_branch":null,"files":null,"tree":[],"storefront":"/r/hiradary","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hiradary/reoverlay/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}