@watch-state/react-modal

Popups with React and watch-state


Keywords
modal, popup, react, watch, state, front-end
License
MIT
Install
npm install @watch-state/react-modal@1.1.2

Documentation

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