@watch-state/react-modal
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published
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

Package Sidebar

Install

npm i @watch-state/react-modal

Weekly Downloads

6

Version

1.1.2

License

MIT

Unpacked Size

27.3 kB

Total Files

12

Last publish

Collaborators

  • deight