1.4.0 • Published 3 years ago
react-just-modal v1.4.0
react-just-modal
a simple modal component for react
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
Prop | Type | Description |
---|---|---|
visible | boolean | to open or close modal |
onCloseOutsideClick | boolean | to open or close modal when outside click |
onClose | function | callback to close modal |
className | string | style |
Screenshots
Authors
License
MIT © Btechiexyz