react-mobx-routing-modal
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta • Public • Published

react-mobx-routing-modal

NPM downloads license
Cool pop-ups related to URL with React 16.3+ and Mobx 3+.

Installation

npm

npm i react-mobx-routing-modal

yarn

yarn add react-mobx-routing-modal

Using

All modals should be placed into Modals.

import RouterModal, {Modals, OpenModal} from 'react-mobx-routing-modal'
import theme from 'react-mobx-modal/theme/default.module.scss'
 
export default () => (
  <>
    <OpenModal id='test'>Open</OpenModal>
    <Modals className={theme.modals}>
      <RouterModal id='test' delay={300} classNames={theme}>
        Test modal
      </RouterModal>
    </Modals>
  </>
)

Issues

If you find a bug, please file an issue on GitHub
issues


stars watchers

Package Sidebar

Install

npm i react-mobx-routing-modal

Weekly Downloads

2

Version

1.0.0-beta

License

MIT

Unpacked Size

9.24 kB

Total Files

6

Last publish

Collaborators

  • deight