@watch-state/react-modal
v1.1.2
Published
Popups with React and watch-state
Downloads
3
Maintainers
Readme
@watch-state/react-modal
Popups with React and watch-state.
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