sbx-react-modal-burlak
v2.0.3
Published
sbx-react-modal-burlak
Downloads
5
Readme
SBX React Modal
sbx i --save sbx-react-modal-burlak
import Modal from 'sbx-react-modal-burlak';
<Modal
dark
title={'Hi!'}
className={'my-modal'}
opened={this.state.bool}
maxWidth={400}
beforeHide={(instance) => {}}
onShow={(instance) => {}}
onHide={(instance) => {
this.setState({
bool: false
});
}}
buttons={[{
text: 'Cancel',
type: 'error',
onClick: (e, instance) => {
console.log(e, instance);
}
},{
text: 'Send',
type: 'success',
onClick: (e, instance) => {
console.log(e, instance);
}
}]}
>
Test modal
</Modal>