1.4.0 • Published 3 years ago

react-just-modal v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-just-modal

a simple modal component for react

JavaScript Style GuideDownloads

Installation

npm install --save react-just-modal

Usage

import React, { Component } from 'react'

import Modal from 'react-just-modal'

class Example extends Component {
  render() {
    return (
      <Modal visible={true} onCloseOutsideClick={true}>
        <div>Simple modal</div>
      </Modal>
    )
  }
}

simple-react-modal Props

PropTypeDescription
visiblebooleanto open or close modal
onCloseOutsideClickbooleanto open or close modal when outside click
onClosefunctioncallback to close modal
classNamestringstyle

Screenshots

Authors

License

MIT © Btechiexyz