p14-react-modal-ocr-fred_dou
v1.2.0
Published
This is a react modal component
Downloads
1
Readme
p14-react-modal-fred_dou
This is a react modal component
Install
npm install --save p14-react-modal-fred_dou
Usage
import React, { Component } from 'react'
import Modal from 'p14-react-modal-fred_dou'
import 'modal.css'
class Example extends Component {
render() {
function onClickTypeFunction(event){
alert('This is an onclick event alert !')
}
return (
<Modal
text='some text on the modal'
textBtn='some text on the button'
functionBtn={onClickTypeFunction}
/>
)
}
}
//Classnames of the modal must be include on a css files
.modal-bg{
'classname of the modal background'
}
.modal-ctn{
'classname of the modal container'
}
.modal-msg{
'classname of the modal text'
}
.modal-btn{
'classname of the modal button'
}
License
MIT © Frederic-Douville