@watch-state/react-modal

Popups with React and watch-state

Usage no npm install needed!

<script type="module">
  import watchStateReactModal from 'https://cdn.skypack.dev/@watch-state/react-modal';
</script>

README

Watch-State logo by Mikhail Lysikov

  @watch-state/react-modal

 

NPM minzipped size downloads changelog license

Popups with React and watch-state.

stars watchers

Install

npm

npm i @watch-state/react-modal

yarn

yarn add @watch-state/react-modal

Usage

All modals should be placed into Modals.

import Modal, {Modals} from '@watch-state/react-modal'
import theme from '@watch-state/react-modal/theme/default.module.scss'

export default () => (
  <Modals className={theme.modals}>
    <Modal delay={300} classNames={theme}>
      Test modal
    </Modal>
  </Modals>
)

Issues

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

issues